summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorKristof Beyls <kristof.beyls@arm.com>2012-09-12 11:25:02 +0000
committerKristof Beyls <kristof.beyls@arm.com>2012-09-12 11:25:02 +0000
commite6b876f4e514726f7f8fe0d0982901fef13859bb (patch)
treec51c44b1383e97b1001f56caa06f0ee5b7f89f79 /clang/lib/Driver/Tools.cpp
parent9566ca9af852fc9b688b69f4aa3302bb2230827f (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud