Skip to content

Commit 6b01ea7

Browse files
authored
[SYCL] Fix macOS build error (#10776)
Post commit started to failed on 25c3666 (#10620) for macOS build because: ``` error: no viable overloaded '=' ReqdWorkGroupSize = NewReqdWorkGroupSize; note: candidate function not viable: no known conversion from 'llvm::SmallVector<size_t, 3>' (aka 'SmallVector<unsigned long, 3>') to 'const std::optional<llvm::SmallVector<unsigned long long, 3>>' for 1st argument _LIBCPP_INLINE_VISIBILITY optional& operator=(const optional&) = default;
1 parent 8ef4090 commit 6b01ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/sycl-post-link/SYCLDeviceRequirements.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void llvm::getSYCLDeviceRequirements(
7070
std::optional<llvm::SmallVector<uint64_t, 3>> ReqdWorkGroupSize;
7171
for (const Function &F : MD.getModule()) {
7272
if (const MDNode *MDN = F.getMetadata("reqd_work_group_size")) {
73-
llvm::SmallVector<size_t, 3> NewReqdWorkGroupSize;
73+
llvm::SmallVector<uint64_t, 3> NewReqdWorkGroupSize;
7474
for (size_t I = 0, E = MDN->getNumOperands(); I < E; ++I)
7575
NewReqdWorkGroupSize.push_back(
7676
ExtractUnsignedIntegerFromMDNodeOperand(MDN, I));

0 commit comments

Comments
 (0)