Author: Henrich Lauko
Date: 2025-09-30T22:25:00+02:00
New Revision: fe9fba8d24f4e7a0cca26fceb621cfa4276d793b

URL: 
https://github.com/llvm/llvm-project/commit/fe9fba8d24f4e7a0cca26fceb621cfa4276d793b
DIFF: 
https://github.com/llvm/llvm-project/commit/fe9fba8d24f4e7a0cca26fceb621cfa4276d793b.diff

LOG: [OpenACC][CIR] Fix transform inclusive scan init parameter (#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`

Added: 
    

Modified: 
    clang/lib/CIR/CodeGen/CIRGenOpenACCRecipe.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CIR/CodeGen/CIRGenOpenACCRecipe.cpp 
b/clang/lib/CIR/CodeGen/CIRGenOpenACCRecipe.cpp
index e41c2d85fbd5d..fc28ac552224c 100644
--- a/clang/lib/CIR/CodeGen/CIRGenOpenACCRecipe.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenOpenACCRecipe.cpp
@@ -89,7 +89,7 @@ mlir::Value OpenACCRecipeBuilderBase::makeBoundsAlloca(
   std::transform_inclusive_scan(
       resultTypes.begin(), resultTypes.end(),
       std::back_inserter(allocasLeftArr), std::plus<bool>{},
-      [](QualType ty) { return !ty->isConstantArrayType(); });
+      [](QualType ty) { return !ty->isConstantArrayType(); }, false);
 
   // Keep track of the number of 'elements' that we're allocating. Individual
   // allocas should multiply this by the size of its current allocation.


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to