[PATCH] D59845: Fix IsStructuralMatch specialization for EnumDecl to prevent re-importing an EnumDecl while trying to complete it
Jonas Devlieghere via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 26 14:53:14 PDT 2019
JDevlieghere added inline comments.
================
Comment at: lib/AST/ASTImporter.cpp:1951
+ // something we're trying to import while completin ToEnum
+ Decl *ToOrigin = Importer.GetOriginalDecl(ToEnum);
+
----------------
```
if (Decl *ToOrigin = Importer.GetOriginalDecl(ToEnum))
if (auto *ToOriginEnum = dyn_cast<EnumDecl>(ToOrigin))
ToEnum = ToOriginEnum;
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59845/new/
https://reviews.llvm.org/D59845
More information about the cfe-commits
mailing list