From 5d66c6bbb9e9e966b7490706a8fcdbc363eaf5bf Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 11 Sep 2015 18:54:28 +0000 Subject: [PATCH] Remove a redundant check from CGDebugInfo::shouldOmitDefinition() (NFC). llvm-svn: 247447 --- clang/lib/CodeGen/CGDebugInfo.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index a24934e..50a8ffb 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1480,14 +1480,8 @@ static bool shouldOmitDefinition(CodeGenOptions::DebugInfoKind DebugKind, const RecordDecl *RD, const LangOptions &LangOpts) { // Does the type exist in an imported clang module? - if (DebugTypeExtRefs && RD->isFromASTFile()) { - if (auto *CTSD = dyn_cast(RD)) - if (CTSD->isExplicitInstantiationOrSpecialization()) - // We may not assume that this type made it into the module. - return true; - if (RD->getDefinition()) + if (DebugTypeExtRefs && RD->isFromASTFile() && RD->getDefinition()) return true; - } if (DebugKind > CodeGenOptions::LimitedDebugInfo) return false; -- 2.7.4