mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 22:35:43 +08:00
Merge hotfix: x64 AssemblyBuilder: Don't copy data of size zero
This commit is contained in:
parent
01f36ef4e8
commit
b2f4f70274
@ -385,7 +385,9 @@ void AssemblyBuilderX64::finalize()
|
||||
size_t dataSize = data.size() - dataPos;
|
||||
|
||||
// Shrink data
|
||||
if (dataSize > 0)
|
||||
memmove(&data[0], &data[dataPos], dataSize);
|
||||
|
||||
data.resize(dataSize);
|
||||
|
||||
finalized = true;
|
||||
|
Loading…
Reference in New Issue
Block a user