Changeset b7778c1 for src/SymTab/Validate.cc
- Timestamp:
- Oct 4, 2017, 3:31:43 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, 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:
- 3364962
- Parents:
- 3628765 (diff), bb9d8e8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
r3628765 rb7778c1 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.