diff options
| author | Adrian Prantl <aprantl@apple.com> | 2015-09-19 00:10:25 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2015-09-19 00:10:25 +0000 |
| commit | 9083fb296d336494ceed6a1c70146768f7c51d39 (patch) | |
| tree | ab4b67ab6cea86c24e16945617d88ada85bdfc7c /lib/CodeGen/ObjectFilePCHContainerOperations.cpp | |
| parent | e7c647cece3aa94ab4b3da032fbd8459146827c3 (diff) | |
| download | clang-9083fb296d336494ceed6a1c70146768f7c51d39.tar.gz | |
Eliminate a redundant check.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248068 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 b78005ce8f..8b40408f1c 100644 --- a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -172,9 +172,8 @@ public: if (Diags.hasErrorOccurred()) return; - if (CodeGen::CGDebugInfo *DI = Builder->getModuleDebugInfo()) - if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) - DI->completeRequiredType(RD); + if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) + Builder->getModuleDebugInfo()->completeRequiredType(RD); } /// Emit a container holding the serialized AST. |
