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