Skip to content

Commit b6b8352

Browse files
authored
[SYCLLowerIR] Fix size_t/uint64_t confusion (#14964)
This was quite rightly breaking the post-commit MacOS build.
1 parent a0a5951 commit b6b8352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/SYCLLowerIR/SYCLCreateNVVMAnnotations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ decomposeWGMetadata(const MDNode &Node, const Function &F) {
5454
NDim = getSingleIntMetadata(*NDimMD).value_or(3);
5555
assert(NDim >= 1 && NDim <= 3 && "Invalid work-group dimensionality");
5656

57-
std::array<std::optional<size_t>, 3> Ops;
57+
std::array<std::optional<uint64_t>, 3> Ops;
5858
for (unsigned I = 0, E = std::min(Node.getNumOperands(), NDim); I != E; I++) {
5959
if (auto *C = mdconst::dyn_extract<ConstantInt>(Node.getOperand(I)))
6060
Ops[I] = C->getZExtValue();

0 commit comments

Comments
 (0)