From: Fangrui Song Date: Mon, 11 Jan 2021 06:22:07 +0000 (-0800) Subject: CGDebugInfo: Delete unneeded UnwrapTypeForDebugInfo X-Git-Tag: llvmorg-13-init~1576 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8d28420885a42d16a57e02c28129d0eb92474a1;p=platform%2Fupstream%2Fllvm.git CGDebugInfo: Delete unneeded UnwrapTypeForDebugInfo Tested with stage 2 -DCMAKE_BUILD_TYPE=Debug clang, byte identical. --- diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index df8432d..7dc6457 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.