aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/StringRef.cpp
diff options
context:
space:
mode:
authorEhud Katz <ehudkatz@gmail.com>2020-01-06 10:51:55 +0200
committerEhud Katz <ehudkatz@gmail.com>2020-01-06 11:30:40 +0200
commitf3f7dc3d2990151a78b246a7a1485d0c13a9fb36 (patch)
tree72be159dc861918752f1a8dc35297d62fc9d322c /llvm/lib/Support/StringRef.cpp
parentaab72f89b19ae38ea7ac3b7b51aae68fc10aef4f (diff)
downloadllvm-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.cpp2
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;
}