diff options
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index a24934e6240..50a8ffb4953 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<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; |