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{}, - [](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.