diff options
| author | Adrian Prantl <aprantl@apple.com> | 2018-01-03 18:31:04 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2018-01-03 18:31:04 +0000 |
| commit | 9b777b26d9f99ddab97589f9c636d800cfb4e284 (patch) | |
| tree | ef4af35b56b0e7ca73a5c3209eb9cf7f5242b94a /lib/CodeGen/ObjectFilePCHContainerOperations.cpp | |
| parent | 0a1e5835c1a3e823c7f211065edd6d3234a750ec (diff) | |
| download | clang-9b777b26d9f99ddab97589f9c636d800cfb4e284.tar.gz | |
Simplify code (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
| -rw-r--r-- | lib/CodeGen/ObjectFilePCHContainerOperations.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<ImportDecl>(D); - if (!Import->getImportedOwningModule()) - DI.EmitImportDecl(*Import); + if (!D->getImportedOwningModule()) + DI.EmitImportDecl(*D); return true; } |
