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:
a2160dd
)
[clang][Interp][NFC] Add a debugging assertion
author
Timm Bäder
<tbaeder@redhat.com>
Thu, 20 Jul 2023 08:51:29 +0000
(10:51 +0200)
committer
Timm Bäder
<tbaeder@redhat.com>
Thu, 20 Jul 2023 12:06:09 +0000
(14:06 +0200)
We will probably have to remove this at some point, but until then, make
sure we're not running into much-harder-to-debug problems later on.
clang/lib/AST/Interp/ByteCodeExprGen.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/Interp/ByteCodeExprGen.cpp
b/clang/lib/AST/Interp/ByteCodeExprGen.cpp
index
c6c4c78
..
ad83875
100644
(file)
--- a/
clang/lib/AST/Interp/ByteCodeExprGen.cpp
+++ b/
clang/lib/AST/Interp/ByteCodeExprGen.cpp
@@
-1806,6
+1806,7
@@
bool ByteCodeExprGen<Emitter>::VisitCXXMemberCallExpr(
template <class Emitter>
bool ByteCodeExprGen<Emitter>::VisitCXXDefaultInitExpr(
const CXXDefaultInitExpr *E) {
+ assert(classify(E->getType()));
return this->visit(E->getExpr());
}