diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-08-08 15:41:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-08 15:41:58 +0200 |
commit | d54516b9ad70e3f27ccd1dd0b9599aea44ddeb2d (patch) | |
tree | 9b209bb4414b1c004bc1f427987e3bba4717b439 /clang/lib/AST/ByteCode | |
parent | ac8295550b4e0abe044099485f95f7ac08cbb19f (diff) | |
download | llvm-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.cpp | 2 |
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; } } |