Skip to content

Commit

Permalink
Avoid unused var error when assertion is turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
erwei-xilinx committed Feb 25, 2025
1 parent 42d516b commit e498fc1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mlir/lib/Conversion/ConvertToAIRPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,8 @@ ConvertForallToParallelInFilteredOps(SmallPtrSet<Operation *, 8> &filteredOps,
fAdded.push_back(newPar);
}
for (auto e : fErased)
assert(filteredOps.erase(e));
if (!filteredOps.erase(e))
return failure();
filteredOps.insert(fAdded.begin(), fAdded.end());
return success();
}
Expand Down Expand Up @@ -1465,8 +1466,6 @@ struct InsertEmptyLaunchOverHerdPass
}
};



// Identifies arith operations where all operands are either constants, or
// produced by IndexCastOp casting from IndexType. If detected, canonicalize
// IndexCast ops by changing the arith op's input/output types to IndexType.
Expand Down

0 comments on commit e498fc1

Please sign in to comment.