From 81a7c322e4f03ba6dc0044198e48e9480746a10c Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Tue, 30 Jul 2019 11:54:29 -0700 Subject: [PATCH] Add std::move in UniformSupport. Fixes build warnings on clang-8, no warnings on redundant moves on gcc-(6.5,7.4,8.3). Closes tensorflow/mlir#41 PiperOrigin-RevId: 260764269 --- mlir/include/mlir/Dialect/QuantOps/UniformSupport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/include/mlir/Dialect/QuantOps/UniformSupport.h b/mlir/include/mlir/Dialect/QuantOps/UniformSupport.h index c8d818d..5d11c769 100644 --- a/mlir/include/mlir/Dialect/QuantOps/UniformSupport.h +++ b/mlir/include/mlir/Dialect/QuantOps/UniformSupport.h @@ -94,7 +94,7 @@ public: llvm::APSInt result(storageBitWidth, !isSigned); fixedpoint.convertToInteger(result, APFloat::rmNearestTiesToEven, &lossy); - return result; + return std::move(result); } int64_t quantizeFloatToInt64(APFloat expressedValue) const { -- 2.7.4