forked from OSchip/llvm-project
Fix unused variable warning in opt build
TESTED with existing tests -- PiperOrigin-RevId: 244808731
This commit is contained in:
parent
8189e6ef90
commit
017cf6c7b8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue