Changeset 13f066d for src/InitTweak/FixInitNew.cpp
- Timestamp:
- Mar 4, 2023, 1:35:31 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 231e1ae
- Parents:
- 1e38178 (diff), a8667ab (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInitNew.cpp
r1e38178 r13f066d 107 107 private: 108 108 /// hack to implement WithTypeSubstitution while conforming to mutation safety. 109 ast::TypeSubstitution * env ;110 bool envModified ;109 ast::TypeSubstitution * env = nullptr; 110 bool envModified = false; 111 111 }; 112 112 … … 522 522 { 523 523 static UniqueName tempNamer("_tmp_cp"); 524 assert( env );525 524 const CodeLocation loc = impCpCtorExpr->location; 526 525 // CP_CTOR_PRINT( std::cerr << "Type Substitution: " << *env << std::endl; ) … … 534 533 535 534 // xxx - this originally mutates arg->result in place. is it correct? 535 assert( env ); 536 536 result = env->applyFree( result.get() ).node; 537 537 auto mutResult = result.get_and_mutate();
Note:
See TracChangeset
for help on using the changeset viewer.