[PATCH] D82568: [clang][CrossTU] Invalidate parent map after get cross TU definition.

Gabor Marton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 30 04:51:10 PDT 2020


martong added inline comments.


================
Comment at: clang/lib/CrossTU/CrossTranslationUnit.cpp:723
+  // Parent map is invalidated after changing the AST.
+  ToDecl->getASTContext().getParentMapContext().clear();
+
----------------
> ... the TU is modified by getCrossTUDefinition the parent map does not
contain the newly imported objects and has to be re-created.

I see we clear it here, but when/where will be the parent map re-created?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82568/new/

https://reviews.llvm.org/D82568





More information about the cfe-commits mailing list