From d54516b9ad70e3f27ccd1dd0b9599aea44ddeb2d Mon Sep 17 00:00:00 2001 From: Timm Baeder Date: Fri, 8 Aug 2025 15:41:58 +0200 Subject: [clang][bytecode][NFC] Use an existing local variable (#152710) Instead of calling getSize() again. --- clang/lib/AST/ByteCode/InterpState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/AST/ByteCode') diff --git a/clang/lib/AST/ByteCode/InterpState.cpp b/clang/lib/AST/ByteCode/InterpState.cpp index 5593531..32f940c 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; } } -- cgit v1.1