Skip to content

Commit bdcd591

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in ExpandOps.cpp (NFC)
1 parent a314b3b commit bdcd591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Arith/Transforms/ExpandOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static Value createConst(Location loc, Type type, int value,
3535
}
3636

3737
/// Create a float constant.
38-
static Value createFloatConst(Location loc, Type type, APFloat value,
38+
static Value createFloatConst(Location loc, Type type, const APFloat &value,
3939
PatternRewriter &rewriter) {
4040
auto attr = rewriter.getFloatAttr(getElementTypeOrSelf(type), value);
4141
if (auto shapedTy = dyn_cast<ShapedType>(type)) {

0 commit comments

Comments
 (0)