CGDebugInfo: Delete redundant test
authorFangrui Song <i@maskray.me>
Mon, 11 Jan 2021 06:09:47 +0000 (22:09 -0800)
committerFangrui Song <i@maskray.me>
Mon, 11 Jan 2021 06:22:06 +0000 (22:22 -0800)
clang/lib/CodeGen/CGDebugInfo.cpp

index 74ec683..df8432d 100644 (file)
@@ -3148,8 +3148,6 @@ llvm::DIType *CGDebugInfo::getTypeOrNull(QualType Ty) {
 
 void CGDebugInfo::completeTemplateDefinition(
     const ClassTemplateSpecializationDecl &SD) {
-  if (DebugKind <= codegenoptions::DebugLineTablesOnly)
-    return;
   completeUnusedClass(SD);
 }