diff options
author | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-04-10 22:44:51 +0000 |
---|---|---|
committer | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-04-10 22:44:51 +0000 |
commit | 68f310df58be25b695eca9bb446b1a1cacf20237 (patch) | |
tree | 7b3028cf9aa58aeacc1692b50e88ec274af65c5b /lldb/scripts/Python/edit-swig-python-wrapper-file.py | |
parent | 2a592dcc466dfba0a87c2b96c17c3f57c5dea8d8 (diff) | |
download | bcm5719-llvm-68f310df58be25b695eca9bb446b1a1cacf20237.tar.gz bcm5719-llvm-68f310df58be25b695eca9bb446b1a1cacf20237.zip |
llvm-stress: stop abusing ConstantFP::get()
ConstantFP::get(Type*, double) is unreliably host-specific:
it can't handle a type like PPC128 on an x86 host. It even
has a comment to that effect: "This should only be used for
simple constant values like 2.0/1.0 etc, that are
known-valid both as host double and as the target format."
Instead, use APFloat. While we're at it, randomize the floating
point value more thoroughly; it was previously limited
to the range 0 to 2**19 - 1.
PR12451.
llvm-svn: 154446
Diffstat (limited to 'lldb/scripts/Python/edit-swig-python-wrapper-file.py')
0 files changed, 0 insertions, 0 deletions