Changeset 2871210 for src/ResolvExpr
- Timestamp:
- Jul 3, 2015, 6:08:20 PM (10 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:
- f6d7e0f
- Parents:
- 0df292b
- Location:
- src/ResolvExpr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
r0df292b r2871210 10 10 // Created On : Sat May 16 23:52:08 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jun 22 17:19:54201513 // Update Count : 1712 // Last Modified On : Fri Jul 3 17:58:39 2015 13 // Update Count : 22 14 14 // 15 15 … … 543 543 544 544 AlternativeFinder funcFinder( indexer, env ); { 545 NameExpr *fname ;545 NameExpr *fname = 0;; 546 546 if ( ( fname = dynamic_cast<NameExpr *>( untypedExpr->get_function())) 547 547 && ( fname->get_name() == std::string("&&")) ) { 548 alternatives.push_back( Alternative( untypedExpr->clone(), env, Cost()) ); 548 VoidType v = Type::Qualifiers(); // resolve to type void * 549 PointerType pt( Type::Qualifiers(), v.clone() ); 550 UntypedExpr *vexpr = untypedExpr->clone(); 551 vexpr->get_results().push_front( pt.clone() ); 552 alternatives.push_back( Alternative( vexpr, env, Cost()) ); 549 553 return; 550 554 } -
src/ResolvExpr/Resolver.cc
r0df292b r2871210 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 12:17:01 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Wed Jun 24 16:20:35201513 // Update Count : 15 611 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jul 3 16:18:20 2015 13 // Update Count : 159 14 14 // 15 15 … … 274 274 // must resolve the argument for a computed goto 275 275 if ( branchStmt->get_type() == BranchStmt::Goto ) { // check for computed goto statement 276 if ( NameExpr * arg = dynamic_cast< NameExpr * >( branchStmt->get_computedTarget()) ) {276 if ( Expression * arg = branchStmt->get_computedTarget() ) { 277 277 VoidType v = Type::Qualifiers(); // cast to void * for the alternative finder 278 278 PointerType pt( Type::Qualifiers(), v.clone() );
Note: See TracChangeset
for help on using the changeset viewer.