Changeset b8baa37 for src/InitTweak
- Timestamp:
- Mar 2, 2018, 5:34:52 PM (7 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:
- 938dd75
- Parents:
- 09c72d5
- git-author:
- Rob Schluntz <rschlunt@…> (03/02/18 17:16:34)
- git-committer:
- Rob Schluntz <rschlunt@…> (03/02/18 17:34:52)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
r09c72d5 rb8baa37 187 187 }; 188 188 189 class FixCopyCtors final : public WithStmtsToAdd, public WithShortCircuiting, public WithVisitorRef<FixCopyCtors> {189 class FixCopyCtors final : public WithStmtsToAdd, public WithShortCircuiting, public WithVisitorRef<FixCopyCtors>, public WithTypeSubstitution { 190 190 public: 191 191 FixCopyCtors( UnqCount & unqCount ) : unqCount( unqCount ){} … … 636 636 // take relevant bindings from environment 637 637 assert( ! dtor->env ); 638 dtor->env = TypeSubstitution::newFromExpr( dtor, impCpCtorExpr->env );638 dtor->env = maybeClone( env ); 639 639 stmtsToAddAfter.push_back( new ExprStmt( dtor ) ); 640 640 } // for
Note: See TracChangeset
for help on using the changeset viewer.