Fixed comment as pointed out by post-commit review of D59845

llvm-svn: 358006
This commit is contained in:
Raphael Isemann 2019-04-09 14:18:23 +00:00
parent f62dcea7ed
commit fa26c20eba
1 changed files with 1 additions and 1 deletions

View File

@ -1947,7 +1947,7 @@ bool ASTNodeImporter::IsStructuralMatch(VarDecl *FromVar, VarDecl *ToVar,
bool ASTNodeImporter::IsStructuralMatch(EnumDecl *FromEnum, EnumDecl *ToEnum) {
// Eliminate a potential failure point where we attempt to re-import
// something we're trying to import while completin ToEnum
// something we're trying to import while completing ToEnum.
if (Decl *ToOrigin = Importer.GetOriginalDecl(ToEnum))
if (auto *ToOriginEnum = dyn_cast<EnumDecl>(ToOrigin))
ToEnum = ToOriginEnum;