Skip to content

Commit a384c25

Browse files
xlaukomahesh-attarde
authored andcommitted
[OpenACC][CIR] Fix transform inclusive scan init parameter (llvm#161428)
This fixes macos build, where otherwise the compilation yields an error: `no viable conversion from 'bool' to 'typename iterator_traits<const QualType *>::value_type`
1 parent 8367db7 commit a384c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenOpenACCRecipe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ mlir::Value OpenACCRecipeBuilderBase::makeBoundsAlloca(
8989
std::transform_inclusive_scan(
9090
resultTypes.begin(), resultTypes.end(),
9191
std::back_inserter(allocasLeftArr), std::plus<bool>{},
92-
[](QualType ty) { return !ty->isConstantArrayType(); });
92+
[](QualType ty) { return !ty->isConstantArrayType(); }, false);
9393

9494
// Keep track of the number of 'elements' that we're allocating. Individual
9595
// allocas should multiply this by the size of its current allocation.

0 commit comments

Comments
 (0)