Changeset 2162c2c for src/InitTweak


Ignore:
Timestamp:
Jan 11, 2017, 4:11:02 PM (9 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
075734f
Parents:
bb82c03 (diff), d3a85240 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
src/InitTweak
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    rbb82c03 r2162c2c  
    3838#include "SynTree/AddStmtVisitor.h"
    3939#include "CodeGen/GenType.h"  // for warning/error messages
     40#include "Tuples/Tuples.h"
    4041
    4142bool ctordtorp = false; // print all debug
     
    392393
    393394                bool ResolveCopyCtors::skipCopyConstruct( Type * type ) {
    394                         return dynamic_cast< VarArgsType * >( type ) || GenPoly::getFunctionType( type );
     395                        return dynamic_cast< VarArgsType * >( type ) || GenPoly::getFunctionType( type ) || Tuples::isTtype( type );
    395396                }
    396397
     
    10991100                        addDeclaration( tmp );
    11001101
     1102                        // xxx - this can be TupleAssignExpr now. Need to properly handle this case.
    11011103                        ApplicationExpr * callExpr = safe_dynamic_cast< ApplicationExpr * > ( ctorExpr->get_callExpr() );
    11021104                        TypeSubstitution * env = ctorExpr->get_env();
  • src/InitTweak/InitTweak.cc

    rbb82c03 r2162c2c  
    487487                virtual void visit( UntypedValofExpr *valofExpr ) { isConstExpr = false; }
    488488                virtual void visit( CompoundLiteralExpr *compLitExpr ) { isConstExpr = false; }
     489                virtual void visit( UntypedTupleExpr *tupleExpr ) { isConstExpr = false; }
    489490                virtual void visit( TupleExpr *tupleExpr ) { isConstExpr = false; }
    490491                virtual void visit( TupleAssignExpr *tupleExpr ) { isConstExpr = false; }
Note: See TracChangeset for help on using the changeset viewer.