Fix unused variable warning in opt build
authorSmit Hinsu <hinsu@google.com>
Tue, 23 Apr 2019 07:50:15 +0000 (00:50 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 24 Apr 2019 05:02:33 +0000 (22:02 -0700)
    TESTED with existing tests

--

PiperOrigin-RevId: 244808731

mlir/lib/FxpMathOps/Transforms/UniformKernelUtils.h

index 7b25739..f96ee9e 100644 (file)
@@ -202,6 +202,7 @@ inline APFloat convertFloatToType(FloatType ft, APFloat value) {
   bool losesInfo;
   auto status = value.convert(ft.getFloatSemantics(),
                               APFloat::rmNearestTiesToEven, &losesInfo);
+  (void)status; // unused in opt mode
   assert((status & (APFloat::opDivByZero | APFloat::opInvalidOp)) == 0 &&
          "could not convert to float const");
   return value;