Changeset 5809461 for src/ResolvExpr
- Timestamp:
- Sep 1, 2017, 6:59:48 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- b0dfbc4
- Parents:
- bc3127d
- Location:
- src/ResolvExpr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
rbc3127d r5809461 698 698 699 699 void AlternativeFinder::visit( UntypedExpr *untypedExpr ) { 700 {701 std::string fname = InitTweak::getFunctionName( untypedExpr );702 if ( fname == "&&" ) {703 VoidType v = Type::Qualifiers(); // resolve to type void *704 PointerType pt( Type::Qualifiers(), v.clone() );705 UntypedExpr *vexpr = untypedExpr->clone();706 vexpr->set_result( pt.clone() );707 alternatives.push_back( Alternative( vexpr, env, Cost::zero) );708 return;709 }710 }711 712 700 AlternativeFinder funcFinder( indexer, env ); 713 701 funcFinder.findWithAdjustment( untypedExpr->get_function() ); … … 856 844 } // if 857 845 } // for 846 } 847 848 void AlternativeFinder::visit( LabelAddressExpr * expr ) { 849 alternatives.push_back( Alternative( expr->clone(), env, Cost::zero) ); 858 850 } 859 851 -
src/ResolvExpr/AlternativeFinder.h
rbc3127d r5809461 54 54 virtual void visit( UntypedExpr *untypedExpr ); 55 55 virtual void visit( AddressExpr *addressExpr ); 56 virtual void visit( LabelAddressExpr *labelExpr ); 56 57 virtual void visit( CastExpr *castExpr ); 57 58 virtual void visit( VirtualCastExpr *castExpr );
Note: See TracChangeset
for help on using the changeset viewer.