Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r6f95000 rbcda04c  
    4343#include "Common/utility.h"
    4444#include "Common/UniqueName.h"
     45#include "Concurrency/Keywords.h"
    4546#include "Validate.h"
    4647#include "SynTree/Visitor.h"
     
    224225                HoistStruct::hoistStruct( translationUnit );
    225226                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 );
    226229                autogenerateRoutines( translationUnit ); // moved up, used to be below compoundLiteral - currently needs EnumAndPointerDecayPass
     230                Concurrency::implementMutexFuncs( translationUnit );
     231                Concurrency::implementThreadStarter( translationUnit );
    227232                acceptAll( translationUnit, epc );
    228                 acceptAll( translationUnit, lrt );
    229233                ReturnChecker::checkFunctionReturns( translationUnit );
    230234                compoundliteral.mutateDeclarationList( translationUnit );
     
    840844                assertf( retVals.size() == 0 || retVals.size() == 1, "Function %s has too many return values: %d", functionDecl->get_name().c_str(), retVals.size() );
    841845                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.
    844848                        DeclarationWithType * ret = retVals.front();
    845849                        if ( ret->get_name() == "" ) {
Note: See TracChangeset for help on using the changeset viewer.