From 1b88acedd0f24757b9cc97d9b2d38fb4508456b0 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Wed, 3 Jan 2018 18:31:04 +0000 Subject: [PATCH] Simplify code (NFC) llvm-svn: 321750 --- clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index d0760b9cc2a6..cb695e79eb29 100644 --- a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/clang/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; }