HomePhabricator

[ASTImporter] Fix IsStructuralMatch specialization for EnumDecl to prevent re…

Authored by shafik on Mar 27 2019, 10:47 AM.

Description

[ASTImporter] Fix IsStructuralMatch specialization for EnumDecl to prevent re-importing an EnumDecl while trying to complete it

Summary:
We may try and re-import an EnumDecl while trying to complete it in IsStructuralMatch(...) specialization for EnumDecl. This change mirrors a similar fix for the specialization for RecordDecl.

Differential Revision: https://reviews.llvm.org/D59845

llvm-svn: 357100