diff options
author | Frederic Riss <friss@apple.com> | 2018-12-09 02:35:19 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2018-12-09 02:35:19 +0000 |
commit | f9ac005630f2dc2392246aa322f95911a0ee3b70 (patch) | |
tree | ad30c2d94252914859bf29d27264e51fde143732 /source/Plugins/Instruction | |
parent | 22539a2e9cef208be89ceb1a95409fcdef8b55e4 (diff) | |
download | lldb-f9ac005630f2dc2392246aa322f95911a0ee3b70.tar.gz |
Remove some UB in RegisterContextDarwin_arm64.cpp
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@348710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Plugins/Instruction')
-rw-r--r-- | source/Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp b/source/Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp index bab249311..b053f5a8f 100644 --- a/source/Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp +++ b/source/Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp @@ -90,7 +90,7 @@ static inline uint64_t AddWithCarry(uint32_t N, uint64_t x, uint64_t y, bit carry_in, EmulateInstructionARM64::ProcState &proc_state) { uint64_t unsigned_sum = UInt(x) + UInt(y) + UInt(carry_in); - int64_t signed_sum = SInt(x) + SInt(y) + UInt(carry_in); + int64_t signed_sum = 0;//SInt(x) + SInt(y) + UInt(carry_in); uint64_t result = unsigned_sum; if (N < 64) result = Bits64(result, N - 1, 0); |