Add std::move in UniformSupport.
authorJacques Pienaar <jpienaar@google.com>
Tue, 30 Jul 2019 18:54:29 +0000 (11:54 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 30 Jul 2019 18:56:16 +0000 (11:56 -0700)
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

index c8d818d..5d11c76 100644 (file)
@@ -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 {