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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits