[llvm-branch-commits] [clang] b8d2842 - CGDebugInfo: Delete unneeded UnwrapTypeForDebugInfo

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Jan 10 22:26:44 PST 2021


Author: Fangrui Song
Date: 2021-01-10T22:22:07-08:00
New Revision: b8d28420885a42d16a57e02c28129d0eb92474a1

URL: https://github.com/llvm/llvm-project/commit/b8d28420885a42d16a57e02c28129d0eb92474a1
DIFF: https://github.com/llvm/llvm-project/commit/b8d28420885a42d16a57e02c28129d0eb92474a1.diff

LOG: CGDebugInfo: Delete unneeded UnwrapTypeForDebugInfo

Tested with stage 2 -DCMAKE_BUILD_TYPE=Debug clang, byte identical.

Added: 
    

Modified: 
    clang/lib/CodeGen/CGDebugInfo.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index df8432d47bde..7dc6457d08d0 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -3132,10 +3132,6 @@ static QualType UnwrapTypeForDebugInfo(QualType T, const ASTContext &C) {
 }
 
 llvm::DIType *CGDebugInfo::getTypeOrNull(QualType Ty) {
-
-  // Unwrap the type as needed for debug information.
-  Ty = UnwrapTypeForDebugInfo(Ty, CGM.getContext());
-
   auto It = TypeCache.find(Ty.getAsOpaquePtr());
   if (It != TypeCache.end()) {
     // Verify that the debug info still exists.


        


More information about the llvm-branch-commits mailing list