Changeset 093f1a0
- Timestamp:
- Jul 30, 2015, 3:56:42 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- f678663e
- Parents:
- 7f5566b (diff), b29f8f3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
r7f5566b r093f1a0 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;701 699 Cost thisCost = castCostList( (*i).expr->get_results().begin(), candidate_end, 702 700 castExpr->get_results().begin(), castExpr->get_results().end(), indexer, i->env ); -
src/SymTab/Validate.cc
r7f5566b r093f1a0 162 162 class EliminateTypedef : public Mutator { 163 163 public: 164 EliminateTypedef() : scopeLevel( 0 ) {} 164 EliminateTypedef() : scopeLevel( 0 ) {} 165 /// Replaces typedefs by forward declarations 165 166 static void eliminateTypedef( std::list< Declaration * > &translationUnit ); 166 167 private: … … 542 543 std::list<Statement *> initList; 543 544 initList.push_back( initStmt ); 544 545 545 546 UntypedExpr *cond = new UntypedExpr( new NameExpr( "?<?" ) ); 546 547 cond->get_args().push_back( new VariableExpr( index ) ); … … 617 618 618 619 // need to remove the prototypes, since this may be nested in a routine 619 for ( int start = 0, end = assigns.size() / 2; start < end; start++) {620 for (int start = 0, end = assigns.size()/2; start < end; start++) { 620 621 delete assigns.front(); 621 622 assigns.pop_front(); … … 960 961 } 961 962 962 Declaration *EliminateTypedef::mutate( ContextDecl * contextDecl ) {963 Declaration *EliminateTypedef::mutate( ContextDecl * contextDecl ) { 963 964 Mutator::mutate( contextDecl ); 964 965 return handleAggregate( contextDecl );
Note: See TracChangeset
for help on using the changeset viewer.