Fix unused variable warning in opt build

TESTED with existing tests

--

PiperOrigin-RevId: 244808731
This commit is contained in:
Smit Hinsu 2019-04-23 00:50:15 -07:00 committed by Mehdi Amini
parent 8189e6ef90
commit 017cf6c7b8
1 changed files with 1 additions and 0 deletions

View 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;