forked from OSchip/llvm-project
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
This commit is contained in:
parent
ea56025f1e
commit
81a7c322e4
|
@ -94,7 +94,7 @@ public:
|
||||||
llvm::APSInt result(storageBitWidth, !isSigned);
|
llvm::APSInt result(storageBitWidth, !isSigned);
|
||||||
fixedpoint.convertToInteger(result, APFloat::rmNearestTiesToEven, &lossy);
|
fixedpoint.convertToInteger(result, APFloat::rmNearestTiesToEven, &lossy);
|
||||||
|
|
||||||
return result;
|
return std::move(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t quantizeFloatToInt64(APFloat expressedValue) const {
|
int64_t quantizeFloatToInt64(APFloat expressedValue) const {
|
||||||
|
|
Loading…
Reference in New Issue