[PATCH] D69770: Add recoverable string parsing errors to APFloat
Matt Arsenault via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 3 18:57:11 PST 2019
arsenm added inline comments.
================
Comment at: llvm/lib/Support/APFloat.cpp:273
+ if (p != end)
+ return createError("Invalid exponent in exponent");
----------------
Error message sounds like nonsense
================
Comment at: llvm/unittests/ADT/APFloatTest.cpp:1322
+ EXPECT_EQ(convertToErrorFromString("+0x1.1p-"), "Exponent has no digits");
+ EXPECT_EQ(convertToErrorFromString("-0x1.1p-"), "Exponent has no digits");
}
----------------
It’s a gtestism that these operands should be swapped
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69770/new/
https://reviews.llvm.org/D69770
More information about the cfe-commits
mailing list