From: Adrian Prantl Date: Fri, 11 Sep 2015 18:54:28 +0000 (+0000) Subject: Remove a redundant check from CGDebugInfo::shouldOmitDefinition() (NFC). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=221aabd028853e4c7994bf8b979a5e3f57ac59d0;p=clang Remove a redundant check from CGDebugInfo::shouldOmitDefinition() (NFC). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247447 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index a24934e624..50a8ffb495 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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;