[clang][Interp][NFC] Clear InterpStack::ItemTypes in clear()
authorTimm Bäder <tbaeder@redhat.com>
Wed, 19 Jul 2023 11:51:42 +0000 (13:51 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Thu, 20 Jul 2023 06:10:20 +0000 (08:10 +0200)
clang/lib/AST/Interp/InterpStack.cpp

index 592e22e..c5d9a45 100644 (file)
@@ -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) {