Changeset 70f89d00 for src/ResolvExpr
- Timestamp:
- May 30, 2016, 12:51:22 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, with_gc
- Children:
- f1b1e4c
- Parents:
- 677c1be
- Location:
- src/ResolvExpr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/ResolvExpr/AlternativeFinder.cc ¶
r677c1be r70f89d00 39 39 #include "Tuples/NameMatcher.h" 40 40 #include "Common/utility.h" 41 #include "InitTweak/InitTweak.h" 41 42 42 43 extern bool resolvep; … … 546 547 547 548 { 548 NameExpr *fname = 0;; 549 if ( ( fname = dynamic_cast<NameExpr *>( untypedExpr->get_function())) 550 && ( fname->get_name() == std::string("&&")) ) { 549 std::string fname = InitTweak::getFunctionName( untypedExpr ); 550 if ( fname == "&&" ) { 551 551 VoidType v = Type::Qualifiers(); // resolve to type void * 552 552 PointerType pt( Type::Qualifiers(), v.clone() ); -
TabularUnified src/ResolvExpr/Resolver.cc ¶
r677c1be r70f89d00 492 492 } catch ( SemanticError ) { 493 493 // no alternatives for the constructor initializer - fallback on C-style initializer 494 // xxx- not sure if this makes a ton of sense - should maybe never be able to have this situation? 494 // xxx - not sure if this makes a ton of sense - should maybe never be able to have this situation? 495 496 // reset type qualifiers 497 ctorInit->get_object()->get_type()->get_qualifiers() = ctorInit->get_qualifiers(); 495 498 fallbackInit( ctorInit ); 496 499 return; 497 500 } 501 // reset type qualifiers 502 ctorInit->get_object()->get_type()->get_qualifiers() = ctorInit->get_qualifiers(); 498 503 499 504 // found a constructor - can get rid of C-style initializer
Note: See TracChangeset
for help on using the changeset viewer.