projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8189e6e
)
Fix unused variable warning in opt build
author
Smit Hinsu
<hinsu@google.com>
Tue, 23 Apr 2019 07:50:15 +0000
(
00:50
-0700)
committer
Mehdi 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
patch
|
blob
|
history
diff --git
a/mlir/lib/FxpMathOps/Transforms/UniformKernelUtils.h
b/mlir/lib/FxpMathOps/Transforms/UniformKernelUtils.h
index
7b25739
..
f96ee9e
100644
(file)
--- a/
mlir/lib/FxpMathOps/Transforms/UniformKernelUtils.h
+++ b/
mlir/lib/FxpMathOps/Transforms/UniformKernelUtils.h
@@
-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;