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/StringRef.cpp | |
parent | aab72f89b19ae38ea7ac3b7b51aae68fc10aef4f (diff) | |
download | llvm-f3f7dc3d2990151a78b246a7a1485d0c13a9fb36.zip llvm-f3f7dc3d2990151a78b246a7a1485d0c13a9fb36.tar.gz llvm-f3f7dc3d2990151a78b246a7a1485d0c13a9fb36.tar.bz2 |
[APFloat] Fix compilation warnings
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
-rw-r--r-- | llvm/lib/Support/StringRef.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/StringRef.cpp b/llvm/lib/Support/StringRef.cpp index 4142d13..b5db172 100644 --- a/llvm/lib/Support/StringRef.cpp +++ b/llvm/lib/Support/StringRef.cpp @@ -590,7 +590,7 @@ bool StringRef::getAsDouble(double &Result, bool AllowInexact) const { APFloat F(0.0); auto ErrOrStatus = F.convertFromString(*this, APFloat::rmNearestTiesToEven); if (!ErrOrStatus) { - assert("Invalid floating point representation"); + assert(false && "Invalid floating point representation"); return true; } |