aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-09-19 00:10:25 +0000
committerAdrian Prantl <aprantl@apple.com>2015-09-19 00:10:25 +0000
commit8bd4c13f6762220ce4c3e5121e53d0a38fe7eb99 (patch)
tree4388254e25ddf0040397898aa279a21cf56447c7 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parentcc5d10626339734cdb8242ee9a8a2d3379e82708 (diff)
downloadllvm-8bd4c13f6762220ce4c3e5121e53d0a38fe7eb99.zip
llvm-8bd4c13f6762220ce4c3e5121e53d0a38fe7eb99.tar.gz
llvm-8bd4c13f6762220ce4c3e5121e53d0a38fe7eb99.tar.bz2
Eliminate a redundant check.
llvm-svn: 248068
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 b78005c..8b40408 100644
--- a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
+++ b/clang/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.