]> granicus.if.org Git - clang/commitdiff
Remove an unnecessary check. NFC
authorAdrian Prantl <aprantl@apple.com>
Fri, 11 Sep 2015 18:54:31 +0000 (18:54 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 11 Sep 2015 18:54:31 +0000 (18:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247448 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 50a8ffb4953d2648ec92c30f919fb69f10ddeb7e..006f6ddc778b1f6805c8f70d434cb2612e50e952 100644 (file)
@@ -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;