Skip to content

Commit d54516b

Browse files
authored
[clang][bytecode][NFC] Use an existing local variable (#152710)
Instead of calling getSize() again.
1 parent ac82955 commit d54516b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ByteCode/InterpState.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void InterpState::deallocate(Block *B) {
9494
auto *D = new (Memory) DeadBlock(DeadBlocks, B);
9595
// Since the block doesn't hold any actual data anymore, we can just
9696
// memcpy() everything over.
97-
std::memcpy(D->rawData(), B->rawData(), B->getSize());
97+
std::memcpy(D->rawData(), B->rawData(), Size);
9898
D->B.IsInitialized = false;
9999
}
100100
}

0 commit comments

Comments
 (0)