summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2018-09-07 18:03:43 +0000
committerDavide Italiano <davide@freebsd.org>2018-09-07 18:03:43 +0000
commit5ccc9df84331b4b3d8a4a205c39b1e6a4069ace0 (patch)
tree392ffc9e45cdd80763b3c7674e1451f76b825645 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parent5fb509b7638682a854605b19cb76b89eb4df7882 (diff)
downloadbcm5719-llvm-5ccc9df84331b4b3d8a4a205c39b1e6a4069ace0.tar.gz
bcm5719-llvm-5ccc9df84331b4b3d8a4a205c39b1e6a4069ace0.zip
[Scalar] Fix undefined behaviour when converting double to long.
This showed up in an Ubsan build of lldb (inside the CFAbsoluteTime data formatter). As we only care about the bit pattern, we just round to the nearest double, and truncate to a size that fits in ulonglong_t. <rdar://problem/44229924> llvm-svn: 341682
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud