aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode
diff options
context:
space:
mode:
authorTimm Baeder <tbaeder@redhat.com>2025-08-08 15:41:58 +0200
committerGitHub <noreply@github.com>2025-08-08 15:41:58 +0200
commitd54516b9ad70e3f27ccd1dd0b9599aea44ddeb2d (patch)
tree9b209bb4414b1c004bc1f427987e3bba4717b439 /clang/lib/AST/ByteCode
parentac8295550b4e0abe044099485f95f7ac08cbb19f (diff)
downloadllvm-d54516b9ad70e3f27ccd1dd0b9599aea44ddeb2d.zip
llvm-d54516b9ad70e3f27ccd1dd0b9599aea44ddeb2d.tar.gz
llvm-d54516b9ad70e3f27ccd1dd0b9599aea44ddeb2d.tar.bz2
[clang][bytecode][NFC] Use an existing local variable (#152710)
Instead of calling getSize() again.
Diffstat (limited to 'clang/lib/AST/ByteCode')
-rw-r--r--clang/lib/AST/ByteCode/InterpState.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
}