Apply clang-tidy fixes for performance-unnecessary-copy-initialization in MathOps.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-04-16 07:41:39 +00:00
parent 6120bd4703
commit 1881d6fc80
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ using namespace mlir::math;
OpFoldResult math::AbsOp::fold(ArrayRef<Attribute> operands) {
return constFoldUnaryOp<FloatAttr>(operands, [](const APFloat &a) {
APFloat result(a);
const APFloat &result(a);
return abs(result);
});
}