summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-09-11 18:54:28 +0000
committerAdrian Prantl <aprantl@apple.com>2015-09-11 18:54:28 +0000
commit5d66c6bbb9e9e966b7490706a8fcdbc363eaf5bf (patch)
tree27efb1e959fbcac33a189f513fdc26b569b2edac /clang/lib/CodeGen
parent7010776db7c682e73b12f681d113a093c76de40e (diff)
downloadbcm5719-llvm-5d66c6bbb9e9e966b7490706a8fcdbc363eaf5bf.tar.gz
bcm5719-llvm-5d66c6bbb9e9e966b7490706a8fcdbc363eaf5bf.zip
Remove a redundant check from CGDebugInfo::shouldOmitDefinition() (NFC).
llvm-svn: 247447
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp8
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;
OpenPOWER on IntegriCloud