Changes in src/SymTab/Validate.cc [861799c7:c54b0b4]
- File:
-
- 1 edited
-
src/SymTab/Validate.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
r861799c7 rc54b0b4 224 224 HoistStruct::hoistStruct( translationUnit ); 225 225 ReturnTypeFixer::fix( translationUnit ); // must happen before autogen 226 acceptAll( translationUnit, lrt ); // must happen before autogen, because sized flag needs to propagate to generated functions227 226 autogenerateRoutines( translationUnit ); // moved up, used to be below compoundLiteral - currently needs EnumAndPointerDecayPass 228 227 acceptAll( translationUnit, epc ); 228 acceptAll( translationUnit, lrt ); 229 229 ReturnChecker::checkFunctionReturns( translationUnit ); 230 230 compoundliteral.mutateDeclarationList( translationUnit ); … … 323 323 ObjectDecl * obj = dynamic_cast< ObjectDecl * >( *i ); 324 324 assert( obj ); 325 obj->set_type( new EnumInstType( Type::Qualifiers( true, false, false, false, false ), enumDecl->get_name() ) );325 obj->set_type( new EnumInstType( Type::Qualifiers( true, false, false, false, false, false ), enumDecl->get_name() ) ); 326 326 } // for 327 327 Parent::visit( enumDecl ); … … 838 838 assertf( retVals.size() == 0 || retVals.size() == 1, "Function %s has too many return values: %d", functionDecl->get_name().c_str(), retVals.size() ); 839 839 if ( retVals.size() == 1 ) { 840 // ensure all function return values have a name - use the name of the function to disambiguate (this also provides a nice bit of help for debugging) .841 // ensure other return values have a name .840 // ensure all function return values have a name - use the name of the function to disambiguate (this also provides a nice bit of help for debugging) 841 // ensure other return values have a name 842 842 DeclarationWithType * ret = retVals.front(); 843 843 if ( ret->get_name() == "" ) {
Note:
See TracChangeset
for help on using the changeset viewer.