[PATCH] D55049: Changed every use of ASTImporter::Import to Import_New

Balázs Kéri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 25 02:21:44 PDT 2019


balazske marked an inline comment as done.
balazske added inline comments.


================
Comment at: lib/AST/ASTImporter.cpp:8550
+    if (ExpectedType ToFromOrErr = Import_New(From)) {
+      if (ToContext.hasSameType(*ToFromOrErr, To))
+        return true;
----------------
a_sidorin wrote:
> Wow, we import types instead of just checking them for structural equivalence. That's OK to leave it in the patch as-is but looks pretty strange. Maybe this even deserves a FIXME.
The Import call was already here: "ToContext.hasSameType(**Import(From)**, To))"
This is not a big thing, because the type already exists in ImportedTypes, so the Import call will return it.


Repository:
  rC Clang

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

https://reviews.llvm.org/D55049





More information about the cfe-commits mailing list