Changes in / [b29f8f3:51b986f]
- Location:
- src
- Files:
-
- 2 edited
-
ResolvExpr/AlternativeFinder.cc (modified) (1 diff)
-
SymTab/Validate.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
rb29f8f3 r51b986f 697 697 std::list< Type* >::iterator candidate_end = (*i).expr->get_results().begin(); 698 698 std::advance( candidate_end, castExpr->get_results().size() ); 699 if ( ! unifyList( (*i).expr->get_results().begin(), candidate_end, 700 castExpr->get_results().begin(), castExpr->get_results().end(), i->env, needAssertions, haveAssertions, openVars, indexer ) ) continue; 699 701 Cost thisCost = castCostList( (*i).expr->get_results().begin(), candidate_end, 700 702 castExpr->get_results().begin(), castExpr->get_results().end(), indexer, i->env ); -
src/SymTab/Validate.cc
rb29f8f3 r51b986f 162 162 class EliminateTypedef : public Mutator { 163 163 public: 164 EliminateTypedef() : scopeLevel( 0 ) {} 165 /// Replaces typedefs by forward declarations 164 EliminateTypedef() : scopeLevel( 0 ) {} 166 165 static void eliminateTypedef( std::list< Declaration * > &translationUnit ); 167 166 private: … … 543 542 std::list<Statement *> initList; 544 543 initList.push_back( initStmt ); 545 544 546 545 UntypedExpr *cond = new UntypedExpr( new NameExpr( "?<?" ) ); 547 546 cond->get_args().push_back( new VariableExpr( index ) ); … … 618 617 619 618 // need to remove the prototypes, since this may be nested in a routine 620 for ( int start = 0, end = assigns.size()/2; start < end; start++) {619 for ( int start = 0, end = assigns.size() / 2; start < end; start++ ) { 621 620 delete assigns.front(); 622 621 assigns.pop_front(); … … 961 960 } 962 961 963 Declaration *EliminateTypedef::mutate( ContextDecl * contextDecl ) {962 Declaration *EliminateTypedef::mutate( ContextDecl * contextDecl ) { 964 963 Mutator::mutate( contextDecl ); 965 964 return handleAggregate( contextDecl );
Note:
See TracChangeset
for help on using the changeset viewer.