Changeset a16764a6 for src/GenPoly/Box.cc
- Timestamp:
- Feb 28, 2018, 4:48:22 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:
- 446ffa3
- Parents:
- 6a8df56
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r6a8df56 ra16764a6 215 215 inline void mutateTranslationUnit( std::list< Declaration* > &translationUnit, MutatorType &mutator ) { 216 216 bool seenIntrinsic = false; 217 SemanticError errors;217 SemanticErrorException errors; 218 218 for ( typename std::list< Declaration* >::iterator i = translationUnit.begin(); i != translationUnit.end(); ++i ) { 219 219 try { … … 228 228 assert( *i ); 229 229 } // if 230 } catch( SemanticError &e ) {230 } catch( SemanticErrorException &e ) { 231 231 errors.append( e ); 232 232 } // try … … 575 575 } 576 576 } else { 577 throwSemanticError( argBaseType, "Cannot pass non-struct type for generic struct: " );577 SemanticError( argBaseType, "Cannot pass non-struct type for generic struct: " ); 578 578 } 579 579 } … … 597 597 } else { 598 598 // xxx - should this be an assertion? 599 throwSemanticError( appExpr, toString( *env, "\nunbound type variable: ", tyParm->first, " in application " ) );599 SemanticError( appExpr, toString( *env, "\nunbound type variable: ", tyParm->first, " in application " ) ); 600 600 } // if 601 601 } // if
Note: See TracChangeset
for help on using the changeset viewer.