Skip to content

Commit 0f7a54e

Browse files
committed
[clang][Interp][NFC] Clear InterpStack::ItemTypes in clear()
1 parent f3fed53 commit 0f7a54e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/AST/Interp/InterpStack.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ void InterpStack::clear() {
2424
std::free(Chunk);
2525
Chunk = nullptr;
2626
StackSize = 0;
27+
#ifndef NDEBUG
28+
ItemTypes.clear();
29+
#endif
2730
}
2831

2932
void *InterpStack::grow(size_t Size) {

0 commit comments

Comments
 (0)