diff options
author | Davide Italiano <davide@freebsd.org> | 2018-09-07 18:03:43 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2018-09-07 18:03:43 +0000 |
commit | 5ccc9df84331b4b3d8a4a205c39b1e6a4069ace0 (patch) | |
tree | 392ffc9e45cdd80763b3c7674e1451f76b825645 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | 5fb509b7638682a854605b19cb76b89eb4df7882 (diff) | |
download | bcm5719-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