[llvm-branch-commits] [clang] 6215c1b - CGDebugInfo: Delete redundant test
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Jan 10 22:26:42 PST 2021
Author: Fangrui Song
Date: 2021-01-10T22:22:06-08:00
New Revision: 6215c1b778f62433f3d79addc299a1bbd0e524d0
URL: https://github.com/llvm/llvm-project/commit/6215c1b778f62433f3d79addc299a1bbd0e524d0
DIFF: https://github.com/llvm/llvm-project/commit/6215c1b778f62433f3d79addc299a1bbd0e524d0.diff
LOG: CGDebugInfo: Delete redundant test
Added:
Modified:
clang/lib/CodeGen/CGDebugInfo.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 74ec683fe6e5..df8432d47bde 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -3148,8 +3148,6 @@ llvm::DIType *CGDebugInfo::getTypeOrNull(QualType Ty) {
void CGDebugInfo::completeTemplateDefinition(
const ClassTemplateSpecializationDecl &SD) {
- if (DebugKind <= codegenoptions::DebugLineTablesOnly)
- return;
completeUnusedClass(SD);
}
More information about the llvm-branch-commits
mailing list