From: Adrian Prantl Date: Wed, 3 Jan 2018 18:31:04 +0000 (+0000) Subject: Simplify code (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b777b26d9f99ddab97589f9c636d800cfb4e284;p=clang Simplify code (NFC) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321750 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index d0760b9cc2..cb695e79eb 100644 --- a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -71,9 +71,8 @@ class PCHContainerGenerator : public ASTConsumer { } bool VisitImportDecl(ImportDecl *D) { - auto *Import = cast(D); - if (!Import->getImportedOwningModule()) - DI.EmitImportDecl(*Import); + if (!D->getImportedOwningModule()) + DI.EmitImportDecl(*D); return true; }