[PATCH] D46940: [ASTImporter] make sure that ACtx::getParents still works
Aleksei Sidorin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 16 07:34:06 PDT 2018
a.sidorin added a comment.
Hello Rafael,
The patch is awesome. The only thing I'm uncomfortable with is that we call invalidation on every stmt import - not only during the top-level one. Fixing this requires separating entry point from internal imports and is out of scope of this patch, but adding some FIXMEs is very appreciated.
================
Comment at: lib/AST/ASTImporter.cpp:6755
+ auto ToE = cast_or_null<Expr>(Import(cast<Stmt>(FromE)));
+ if (ToE)
+ ToContext.invalidateParents();
----------------
We already do the invalidation in Import(Stmt), so it looks redundant here.
Repository:
rC Clang
https://reviews.llvm.org/D46940
More information about the cfe-commits
mailing list