Changeset 4817662 for src/GenPoly
- Timestamp:
- Oct 9, 2023, 7:43:54 AM (2 years ago)
- Branches:
- master
- Children:
- 0d49efb
- Parents:
- 8bc67cf (diff), d3652df (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
-
src/GenPoly/BoxNew.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/BoxNew.cpp
r8bc67cf r4817662 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.