[LLVMdev] Buggy assertion in APFloat::convertFromHexadecimalString

Misha Brukman brukman at gmail.com
Thu Aug 20 08:49:50 PDT 2009


On Thu, Aug 20, 2009 at 10:42 AM, Enea Zaffanella <zaffanella at cs.unipr.it>wrote:

> When running clang in Debug mode, I am getting an assertion failure when
> parsing the following line:
>
> float ko = 0x1.1p0;
>
> Apparently, the recent changes in the use of StringRef haven't been
> propagated to all places. Please find attached the trivial patch.


Can you please also add a test to unittests/ADT/APFloatTest.cpp to validate
this, i.e., a test that would fail before this patch but passes with this
patch.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090820/016062d4/attachment.html>


More information about the llvm-dev mailing list