Skip to content

Commit

Permalink
[clang][Interp][NFC] Clear InterpStack::ItemTypes in clear()
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Jul 20, 2023
1 parent f3fed53 commit 0f7a54e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clang/lib/AST/Interp/InterpStack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0f7a54e

Please sign in to comment.