Changes in src/GenPoly/BoxNew.cpp [097c8d0:d3652df]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/BoxNew.cpp
r097c8d0 rd3652df 1726 1726 1727 1727 // -------------------------------------------------------------------------- 1728 // TODO: This is kind of a blind test. I believe all withExprs are handled1729 // in the resolver and we could clear them out after that.1730 struct RemoveWithExprs final {1731 ast::FunctionDecl const * postvisit( ast::FunctionDecl const * decl ) {1732 if ( decl->withExprs.empty() ) return decl;1733 auto mutDecl = mutate( decl );1734 mutDecl->withExprs.clear();1735 return mutDecl;1736 }1737 };1738 1739 // --------------------------------------------------------------------------1740 1728 /// Inserts code to access polymorphic layout inforation. 1741 1729 /// * Replaces member and size/alignment/offsetof expressions on polymorphic … … 2511 2499 ast::Pass<DeclAdapter>::run( translationUnit ); 2512 2500 ast::Pass<RewireAdapters>::run( translationUnit ); 2513 ast::Pass<RemoveWithExprs>::run( translationUnit );2514 2501 ast::Pass<PolyGenericCalculator>::run( translationUnit ); 2515 2502 ast::Pass<Eraser>::run( translationUnit );
Note: See TracChangeset
for help on using the changeset viewer.