OSDN Git Service
(root)
/
android-x86
/
external-llvm-project.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b222b1
)
Add an assert to CGDebugInfo::getTypeOrNull
author
Fangrui Song
<i@maskray.me>
Mon, 11 Jan 2021 21:25:20 +0000
(13:25 -0800)
committer
Fangrui Song
<i@maskray.me>
Mon, 11 Jan 2021 21:25:20 +0000
(13:25 -0800)
clang/lib/CodeGen/CGDebugInfo.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGDebugInfo.cpp
b/clang/lib/CodeGen/CGDebugInfo.cpp
index
7dc6457
..
2beb80b
100644
(file)
--- a/
clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/
clang/lib/CodeGen/CGDebugInfo.cpp
@@
-3132,6
+3132,7
@@
static QualType UnwrapTypeForDebugInfo(QualType T, const ASTContext &C) {
}
llvm::DIType *CGDebugInfo::getTypeOrNull(QualType Ty) {
+ assert(Ty == UnwrapTypeForDebugInfo(Ty, CGM.getContext()));
auto It = TypeCache.find(Ty.getAsOpaquePtr());
if (It != TypeCache.end()) {
// Verify that the debug info still exists.