Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r9feb34b r44547b0  
    5555#include "Common/ScopedMap.h"          // for ScopedMap
    5656#include "Common/SemanticError.h"      // for SemanticError
    57 #include "Common/ToString.hpp"         // for toCString
    5857#include "Common/UniqueName.h"         // for UniqueName
    59 #include "Common/utility.h"            // for cloneAll, deleteAll
     58#include "Common/utility.h"            // for operator+, cloneAll, deleteAll
    6059#include "CompilationState.h"          // skip some passes in new-ast build
    6160#include "Concurrency/Keywords.h"      // for applyKeywords
     
    6463#include "InitTweak/GenInit.h"         // for fixReturnStatements
    6564#include "InitTweak/InitTweak.h"       // for isCtorDtorAssign
    66 #include "ResolvExpr/typeops.h"        // for extractResultType
    67 #include "ResolvExpr/Unify.h"          // for typesCompatible
     65#include "ResolvExpr/typeops.h"        // for typesCompatible
    6866#include "ResolvExpr/Resolver.h"       // for findSingleExpression
    6967#include "ResolvExpr/ResolveTypeof.h"  // for resolveTypeof
     
    864862
    865863        void ReplaceTypedef::premutate( TypeDecl * typeDecl ) {
    866                 typedefNames.erase( typeDecl->name );
     864                TypedefMap::iterator i = typedefNames.find( typeDecl->name );
     865                if ( i != typedefNames.end() ) {
     866                        typedefNames.erase( i ) ;
     867                } // if
     868
    867869                typedeclNames.insert( typeDecl->name, typeDecl );
    868870        }
Note: See TracChangeset for help on using the changeset viewer.