Skip to content

Commit 474cfb6

Browse files
committed
Try to fix macos
1 parent 5a2655e commit 474cfb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/enzyme_ad/jax/Passes/EnzymeHLOOpt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3598,7 +3598,7 @@ struct PadDotGeneral : public OpRewritePattern<mlir::stablehlo::DotGeneralOp> {
35983598
SmallVector<int64_t> sliceLow, sliceHigh, sliceStride;
35993599
for (auto &&[pos, size] :
36003600
llvm::enumerate(otherArg.getType().cast<TensorType>().getShape())) {
3601-
auto it = llvm::find_if(otherDimsToSlice, [&](auto &tup) {
3601+
auto it = llvm::find_if(otherDimsToSlice, [=](auto &tup) {
36023602
return std::get<0>(tup) == pos;
36033603
});
36043604
if (it == otherDimsToSlice.end()) {

0 commit comments

Comments
 (0)