Changeset 21b7161 for src/SymTab/Validate.cc
- Timestamp:
- Oct 3, 2017, 2:55:13 PM (5 years ago)
- Branches:
- aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 7821d6c
- Parents:
- 11a2d9b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
r11a2d9b r21b7161 369 369 DWTIterator begin( dwts.begin() ), end( dwts.end() ); 370 370 if ( begin == end ) return; 371 FixFunctionfixer;371 PassVisitor<FixFunction> fixer; 372 372 DWTIterator i = begin; 373 373 *i = (*i)->acceptMutator( fixer ); 374 if ( fixer. get_isVoid()) {374 if ( fixer.pass.isVoid ) { 375 375 DWTIterator j = i; 376 376 ++i; … … 383 383 ++i; 384 384 for ( ; i != end; ++i ) { 385 FixFunctionfixer;385 PassVisitor<FixFunction> fixer; 386 386 *i = (*i)->acceptMutator( fixer ); 387 if ( fixer. get_isVoid()) {387 if ( fixer.pass.isVoid ) { 388 388 throw SemanticError( "invalid type void in function type ", func ); 389 389 } // if … … 597 597 // apply FixFunction to every assertion to check for invalid void type 598 598 for ( DeclarationWithType *& assertion : type->assertions ) { 599 FixFunctionfixer;599 PassVisitor<FixFunction> fixer; 600 600 assertion = assertion->acceptMutator( fixer ); 601 if ( fixer. get_isVoid()) {601 if ( fixer.pass.isVoid ) { 602 602 throw SemanticError( "invalid type void in assertion of function ", node ); 603 603 } // if
Note: See TracChangeset
for help on using the changeset viewer.