================
@@ -10038,6 +10038,11 @@ Expected<Decl *> ASTImporter::Import(Decl *FromD) {
auto *ToD = CreatedToD;
ImportedDecls.erase(Pos);
+ // Scrub the imported type mapping as well. Import(Type*) can add a
+ // type mapping linked to a declaration that ultimately fails.
----------------
balazske wrote:
```suggestion
// Remove the imported type mapping as well.
// The imported type can point to a declaration that failed to import
later.
```
https://github.com/llvm/llvm-project/pull/214008
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits