Changeset 0bd3faf for src/InitTweak/FixInitNew.cpp
- Timestamp:
- Nov 13, 2023, 1:40:12 PM (8 months ago)
- Branches:
- master
- Children:
- 6ea85b22
- Parents:
- 25f2798
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInitNew.cpp
r25f2798 r0bd3faf 917 917 // static variables with the same name in different functions. 918 918 // Note: it isn't sufficient to modify only the mangleName, because 919 // then subsequent Indexerpasses can choke on seeing the object's name919 // then subsequent SymbolTable passes can choke on seeing the object's name 920 920 // if another object has the same name and type. An unfortunate side-effect 921 921 // of renaming the object is that subsequent NameExprs may fail to resolve, … … 1169 1169 arg2 = new ast::MemberExpr(funcDecl->location, field, new ast::VariableExpr(funcDecl->location, function->params.back() ) ); 1170 1170 } 1171 InitExpander _newsrcParam( arg2 );1171 InitExpander srcParam( arg2 ); 1172 1172 // cast away reference type and construct field. 1173 1173 ast::Expr * thisExpr = new ast::CastExpr(funcDecl->location, new ast::VariableExpr(funcDecl->location, thisParam ), thisParam->get_type()->stripReferences());
Note: See TracChangeset
for help on using the changeset viewer.