[clang] 6215c1b - CGDebugInfo: Delete redundant test

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 10 22:22:15 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 cfe-commits mailing list