Changeset baba5d8
- Timestamp:
- Apr 14, 2016, 1:24:16 PM (8 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:
- 37f0da8, 9fd97126
- Parents:
- 02af22de
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Lvalue.cc
r02af22de rbaba5d8 111 111 Expression *expr = appExpr; 112 112 Type *appType = appExpr->get_results().front(); 113 /*if ( isPolyType( funType ) ) {113 if ( isPolyType( funType ) && ! isPolyType( appType ) ) { 114 114 // make sure cast for polymorphic type is inside dereference 115 115 expr = new CastExpr( appExpr, new PointerType( Type::Qualifiers(), appType->clone() ) ); 116 } */116 } 117 117 UntypedExpr *deref = new UntypedExpr( new NameExpr( "*?" ) ); 118 118 deref->get_results().push_back( appType->clone() );
Note: See TracChangeset
for help on using the changeset viewer.