CGDebugInfo: Delete unneeded UnwrapTypeForDebugInfo
authorFangrui Song <i@maskray.me>
Mon, 11 Jan 2021 06:22:07 +0000 (22:22 -0800)
committerFangrui Song <i@maskray.me>
Mon, 11 Jan 2021 06:22:07 +0000 (22:22 -0800)
Tested with stage 2 -DCMAKE_BUILD_TYPE=Debug clang, byte identical.

clang/lib/CodeGen/CGDebugInfo.cpp

index df8432d..7dc6457 100644 (file)
@@ -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.