Changeset 2162c2c for src/InitTweak
- Timestamp:
- Jan 11, 2017, 4:11:02 PM (9 years ago)
- 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. - Location:
- src/InitTweak
- Files:
-
- 2 edited
-
FixInit.cc (modified) (3 diffs)
-
InitTweak.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
rbb82c03 r2162c2c 38 38 #include "SynTree/AddStmtVisitor.h" 39 39 #include "CodeGen/GenType.h" // for warning/error messages 40 #include "Tuples/Tuples.h" 40 41 41 42 bool ctordtorp = false; // print all debug … … 392 393 393 394 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 ); 395 396 } 396 397 … … 1099 1100 addDeclaration( tmp ); 1100 1101 1102 // xxx - this can be TupleAssignExpr now. Need to properly handle this case. 1101 1103 ApplicationExpr * callExpr = safe_dynamic_cast< ApplicationExpr * > ( ctorExpr->get_callExpr() ); 1102 1104 TypeSubstitution * env = ctorExpr->get_env(); -
src/InitTweak/InitTweak.cc
rbb82c03 r2162c2c 487 487 virtual void visit( UntypedValofExpr *valofExpr ) { isConstExpr = false; } 488 488 virtual void visit( CompoundLiteralExpr *compLitExpr ) { isConstExpr = false; } 489 virtual void visit( UntypedTupleExpr *tupleExpr ) { isConstExpr = false; } 489 490 virtual void visit( TupleExpr *tupleExpr ) { isConstExpr = false; } 490 491 virtual void visit( TupleAssignExpr *tupleExpr ) { isConstExpr = false; }
Note:
See TracChangeset
for help on using the changeset viewer.