summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-09-11 18:54:31 +0000
committerAdrian Prantl <aprantl@apple.com>2015-09-11 18:54:31 +0000
commit453cdf08a2b3425ac6d82b31f0c9a32010d42a31 (patch)
treec3125108a96f52c2ddcf2df13bd1449bafefdc07 /clang/lib/CodeGen/CGDebugInfo.cpp
parent5d66c6bbb9e9e966b7490706a8fcdbc363eaf5bf (diff)
downloadbcm5719-llvm-453cdf08a2b3425ac6d82b31f0c9a32010d42a31.tar.gz
bcm5719-llvm-453cdf08a2b3425ac6d82b31f0c9a32010d42a31.zip
Remove an unnecessary check. NFC
llvm-svn: 247448
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 50a8ffb4953..006f6ddc778 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -2129,7 +2129,7 @@ ObjCInterfaceDecl *CGDebugInfo::getObjCInterfaceDecl(QualType Ty) {
}
llvm::DIModule *CGDebugInfo::getParentModuleOrNull(const Decl *D) {
- if (!DebugTypeExtRefs || !D || !D->isFromASTFile())
+ if (!DebugTypeExtRefs || !D->isFromASTFile())
return nullptr;
llvm::DIModule *ModuleRef = nullptr;
OpenPOWER on IntegriCloud