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:
f3fed53
)
[clang][Interp][NFC] Clear InterpStack::ItemTypes in clear()
author
Timm Bäder
<tbaeder@redhat.com>
Wed, 19 Jul 2023 11:51:42 +0000
(13:51 +0200)
committer
Timm Bäder
<tbaeder@redhat.com>
Thu, 20 Jul 2023 06:10:20 +0000
(08:10 +0200)
clang/lib/AST/Interp/InterpStack.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/Interp/InterpStack.cpp
b/clang/lib/AST/Interp/InterpStack.cpp
index
592e22e
..
c5d9a45
100644
(file)
--- a/
clang/lib/AST/Interp/InterpStack.cpp
+++ b/
clang/lib/AST/Interp/InterpStack.cpp
@@
-24,6
+24,9
@@
void InterpStack::clear() {
std::free(Chunk);
Chunk = nullptr;
StackSize = 0;
+#ifndef NDEBUG
+ ItemTypes.clear();
+#endif
}
void *InterpStack::grow(size_t Size) {