https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/152710
Instead of calling getSize() again. >From 0fa6468a57bdcfa4cc8fec5ab600b30290497106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbae...@redhat.com> Date: Fri, 8 Aug 2025 15:14:01 +0200 Subject: [PATCH] [clang][bytecode][NFC] Use an existing local variable Instead of calling getSize() again. --- clang/lib/AST/ByteCode/InterpState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/ByteCode/InterpState.cpp b/clang/lib/AST/ByteCode/InterpState.cpp index 5593531bdabe3..32f940c262325 100644 --- a/clang/lib/AST/ByteCode/InterpState.cpp +++ b/clang/lib/AST/ByteCode/InterpState.cpp @@ -94,7 +94,7 @@ void InterpState::deallocate(Block *B) { auto *D = new (Memory) DeadBlock(DeadBlocks, B); // Since the block doesn't hold any actual data anymore, we can just // memcpy() everything over. - std::memcpy(D->rawData(), B->rawData(), B->getSize()); + std::memcpy(D->rawData(), B->rawData(), Size); D->B.IsInitialized = false; } } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits