HomePhabricator

[APFloat] Fix checked error assert failures
Audit Required24b326cc610d

Authored by ekatz on Jan 8 2020, 11:42 PM.

Description

[APFloat] Fix checked error assert failures

APFLoat::convertFromString returns Expected result, which must be
"checked" if the LLVM_ENABLE_ABI_BREAKING_CHECKS preprocessor flag is
set.
To mark an Expected result as "checked" we must consume the Error
within.
In many cases, we are only interested in knowing if an error occured,
without the need to examine the error info. This is achieved, easily,
with the errorToBool() API.

Details

Auditors
grosbach
Committed
ekatzJan 8 2020, 11:42 PM
Parents
rG4ebb589629b0: [SCEV] [NFC] add testcase for constant range for addrecexpr with nsw flag
Branches
Unknown
Tags
Unknown