Changes in src/SymTab/Validate.cc [6f95000:bcda04c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
r6f95000 rbcda04c 43 43 #include "Common/utility.h" 44 44 #include "Common/UniqueName.h" 45 #include "Concurrency/Keywords.h" 45 46 #include "Validate.h" 46 47 #include "SynTree/Visitor.h" … … 224 225 HoistStruct::hoistStruct( translationUnit ); 225 226 ReturnTypeFixer::fix( translationUnit ); // must happen before autogen 227 acceptAll( translationUnit, lrt ); // must happen before autogen, because sized flag needs to propagate to generated functions 228 Concurrency::applyKeywords( translationUnit ); 226 229 autogenerateRoutines( translationUnit ); // moved up, used to be below compoundLiteral - currently needs EnumAndPointerDecayPass 230 Concurrency::implementMutexFuncs( translationUnit ); 231 Concurrency::implementThreadStarter( translationUnit ); 227 232 acceptAll( translationUnit, epc ); 228 acceptAll( translationUnit, lrt );229 233 ReturnChecker::checkFunctionReturns( translationUnit ); 230 234 compoundliteral.mutateDeclarationList( translationUnit ); … … 840 844 assertf( retVals.size() == 0 || retVals.size() == 1, "Function %s has too many return values: %d", functionDecl->get_name().c_str(), retVals.size() ); 841 845 if ( retVals.size() == 1 ) { 842 // 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) 843 // ensure other return values have a name 846 // 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). 847 // ensure other return values have a name. 844 848 DeclarationWithType * ret = retVals.front(); 845 849 if ( ret->get_name() == "" ) {
Note:
See TracChangeset
for help on using the changeset viewer.