forked from OSchip/llvm-project
Apply clang-tidy fixes for performance-unnecessary-copy-initialization in MathOps.cpp (NFC)
This commit is contained in:
parent
6120bd4703
commit
1881d6fc80
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue