Changes in src/InitTweak/FixInitNew.cpp [0bd3faf:fa761c2]
- File:
-
- 1 edited
-
src/InitTweak/FixInitNew.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInitNew.cpp
r0bd3faf rfa761c2 178 178 /// (currently by FixInit) 179 179 struct InsertDtors final : public ObjDeclCollector, public ast::WithStmtsToAdd<> { 180 typedef std::list< ObjectDecl * > OrderedDecls; 181 typedef std::list< OrderedDecls > OrderedDeclsStack; 182 180 183 InsertDtors( ast::Pass<LabelFinder> & finder ) : finder( finder ), labelVars( finder.core.vars ) {} 181 184 … … 191 194 ast::Pass<LabelFinder> & finder; 192 195 LabelFinder::LabelMap & labelVars; 196 OrderedDeclsStack reverseDeclOrder; 193 197 }; 194 198 … … 917 921 // static variables with the same name in different functions. 918 922 // Note: it isn't sufficient to modify only the mangleName, because 919 // then subsequent SymbolTablepasses can choke on seeing the object's name923 // then subsequent Indexer passes can choke on seeing the object's name 920 924 // if another object has the same name and type. An unfortunate side-effect 921 925 // of renaming the object is that subsequent NameExprs may fail to resolve, … … 1169 1173 arg2 = new ast::MemberExpr(funcDecl->location, field, new ast::VariableExpr(funcDecl->location, function->params.back() ) ); 1170 1174 } 1171 InitExpander srcParam( arg2 );1175 InitExpander_new srcParam( arg2 ); 1172 1176 // cast away reference type and construct field. 1173 1177 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.