diff options
author | Kristof Beyls <kristof.beyls@arm.com> | 2012-09-12 11:25:02 +0000 |
---|---|---|
committer | Kristof Beyls <kristof.beyls@arm.com> | 2012-09-12 11:25:02 +0000 |
commit | e6b876f4e514726f7f8fe0d0982901fef13859bb (patch) | |
tree | c51c44b1383e97b1001f56caa06f0ee5b7f89f79 /clang/lib/Driver/Tools.cpp | |
parent | 9566ca9af852fc9b688b69f4aa3302bb2230827f (diff) | |
download | bcm5719-llvm-e6b876f4e514726f7f8fe0d0982901fef13859bb.tar.gz bcm5719-llvm-e6b876f4e514726f7f8fe0d0982901fef13859bb.zip |
Fix constant folding through bitcasts by no longer relying on undefined behaviour (converting NaN values between float and double).
SelectionDAG::getConstantFP(double Val, EVT VT, bool isTarget);
should not be used when Val is not a simple constant (as the comment in
SelectionDAG.h indicates). This patch avoids using this function
when folding an unknown constant through a bitcast, where it cannot be
guaranteed that Val will be a simple constant.
llvm-svn: 163703
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions