Remove a redundant check from CGDebugInfo::shouldOmitDefinition() (NFC).
llvm-svn: 247447
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 @@
const RecordDecl *RD,
const LangOptions &LangOpts) {
// Does the type exist in an imported clang module?
- if (DebugTypeExtRefs && RD->isFromASTFile()) {
- if (auto *CTSD = dyn_cast<ClassTemplateSpecializationDecl>(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;