diff options
author | Alex Langford <alangford@apple.com> | 2023-02-16 18:17:59 -0800 |
---|---|---|
committer | Alex Langford <alangford@apple.com> | 2023-02-17 12:39:49 -0800 |
commit | 2f88c07cf820cff829dec5906d298fc7147af8dd (patch) | |
tree | 79122511baf9df2a36c65135675499551bacba62 /llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp | |
parent | 8caa8d95afe47db91d8a4e123ad2deac63d44754 (diff) | |
download | llvm-2f88c07cf820cff829dec5906d298fc7147af8dd.zip llvm-2f88c07cf820cff829dec5906d298fc7147af8dd.tar.gz llvm-2f88c07cf820cff829dec5906d298fc7147af8dd.tar.bz2 |
[lldb] StructuredData should not truncate uint64_t values
In json::Value, getAsInteger returns an optional<int64_t> and getAsNumber
returns an optional<double>. If a value is larger than what an int64_t
can hold but smaller than what a uint64_t can hold, the getAsInteger
function will fail but the getAsNumber will succeed. However, the value
shouldn't be interpreted as a double.
rdar://105556974
Differential Revision: https://reviews.llvm.org/D144238
Diffstat (limited to 'llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions