summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-01-03 18:31:04 +0000
committerAdrian Prantl <aprantl@apple.com>2018-01-03 18:31:04 +0000
commit1b88acedd0f24757b9cc97d9b2d38fb4508456b0 (patch)
tree2d8f98fb983f5590e61b0b71b9abf55e565aa8b9 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parent287c8015400456116d1d3b14e23fff627d0659e5 (diff)
downloadbcm5719-llvm-1b88acedd0f24757b9cc97d9b2d38fb4508456b0.tar.gz
bcm5719-llvm-1b88acedd0f24757b9cc97d9b2d38fb4508456b0.zip
Simplify code (NFC)
llvm-svn: 321750
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
-rw-r--r--clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
index d0760b9cc2a..cb695e79eb2 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<ImportDecl>(D);
- if (!Import->getImportedOwningModule())
- DI.EmitImportDecl(*Import);
+ if (!D->getImportedOwningModule())
+ DI.EmitImportDecl(*D);
return true;
}
OpenPOWER on IntegriCloud