Changeset baba5d8


Ignore:
Timestamp:
Apr 14, 2016, 1:24:16 PM (8 years ago)
Author:
Aaron Moss <a3moss@…>
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
Message:

Fix lvalue casts to not break batchtest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Lvalue.cc

    r02af22de rbaba5d8  
    111111                                Expression *expr = appExpr;
    112112                                Type *appType = appExpr->get_results().front();
    113                                 /*if ( isPolyType( funType ) ) {
     113                                if ( isPolyType( funType ) && ! isPolyType( appType ) ) {
    114114                                        // make sure cast for polymorphic type is inside dereference
    115115                                        expr = new CastExpr( appExpr, new PointerType( Type::Qualifiers(), appType->clone() ) );
    116                                 }*/
     116                                }
    117117                                UntypedExpr *deref = new UntypedExpr( new NameExpr( "*?" ) );
    118118                                deref->get_results().push_back( appType->clone() );
Note: See TracChangeset for help on using the changeset viewer.