diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-09-11 18:54:31 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-09-11 18:54:31 +0000 |
commit | 453cdf08a2b3425ac6d82b31f0c9a32010d42a31 (patch) | |
tree | c3125108a96f52c2ddcf2df13bd1449bafefdc07 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 5d66c6bbb9e9e966b7490706a8fcdbc363eaf5bf (diff) | |
download | bcm5719-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.cpp | 2 |
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; |