diff options
author | Ehud Katz <ehudkatz@gmail.com> | 2020-01-06 10:51:55 +0200 |
---|---|---|
committer | Ehud Katz <ehudkatz@gmail.com> | 2020-01-06 11:30:40 +0200 |
commit | f3f7dc3d2990151a78b246a7a1485d0c13a9fb36 (patch) | |
tree | 72be159dc861918752f1a8dc35297d62fc9d322c /llvm/lib/Support/APFloat.cpp | |
parent | aab72f89b19ae38ea7ac3b7b51aae68fc10aef4f (diff) | |
download | bcm5719-llvm-f3f7dc3d2990151a78b246a7a1485d0c13a9fb36.tar.gz bcm5719-llvm-f3f7dc3d2990151a78b246a7a1485d0c13a9fb36.zip |
[APFloat] Fix compilation warnings
Diffstat (limited to 'llvm/lib/Support/APFloat.cpp')
-rw-r--r-- | llvm/lib/Support/APFloat.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index f6999a6f236..d26c5e6cd2e 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp @@ -4511,7 +4511,9 @@ hash_code hash_value(const APFloat &Arg) { APFloat::APFloat(const fltSemantics &Semantics, StringRef S) : APFloat(Semantics) { auto StatusOrErr = convertFromString(S, rmNearestTiesToEven); - assert(StatusOrErr && "Invalid floating point representation"); + if (!StatusOrErr) { + assert(false && "Invalid floating point representation"); + } } APFloat::opStatus APFloat::convert(const fltSemantics &ToSemantics, |