Author: Timm Bäder Date: 2023-07-20T08:10:20+02:00 New Revision: 0f7a54e3b5a7be63b1c24dc46249de0be94b9997
URL: https://github.com/llvm/llvm-project/commit/0f7a54e3b5a7be63b1c24dc46249de0be94b9997 DIFF: https://github.com/llvm/llvm-project/commit/0f7a54e3b5a7be63b1c24dc46249de0be94b9997.diff LOG: [clang][Interp][NFC] Clear InterpStack::ItemTypes in clear() Added: Modified: clang/lib/AST/Interp/InterpStack.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/InterpStack.cpp b/clang/lib/AST/Interp/InterpStack.cpp index 592e22ed77b9f7..c5d9a459ce8248 100644 --- 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) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits