Skip to content

Commit cfad8f1

Browse files
committedDec 12, 2024·
[clang][bytecode] Fix a build failure on aarch64
This broke e.g. https://lab.llvm.org/buildbot/#/builders/190/builds/11216
1 parent 8713914 commit cfad8f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎clang/lib/AST/ByteCode/InterpBuiltin.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,8 @@ static bool interp__builtin_memcmp(InterpState &S, CodePtr OpPC,
19501950

19511951
size_t MinBufferSize = std::min(BufferA.byteSize().getQuantity(),
19521952
BufferB.byteSize().getQuantity());
1953-
size_t CmpSize = std::min(MinBufferSize, Size.getZExtValue());
1953+
size_t CmpSize =
1954+
std::min(MinBufferSize, static_cast<size_t>(Size.getZExtValue()));
19541955
int Result = std::memcmp(BufferA.Data.get(), BufferB.Data.get(), CmpSize);
19551956
if (Result == 0)
19561957
pushInteger(S, 0, Call->getType());

0 commit comments

Comments
 (0)
Please sign in to comment.