projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6215c1b
)
CGDebugInfo: Delete unneeded UnwrapTypeForDebugInfo
author
Fangrui Song
<i@maskray.me>
Mon, 11 Jan 2021 06:22:07 +0000
(22:22 -0800)
committer
Fangrui 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
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGDebugInfo.cpp
b/clang/lib/CodeGen/CGDebugInfo.cpp
index
df8432d
..
7dc6457
100644
(file)
--- 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.