diff options
author | Ehud Katz <ehudkatz@gmail.com> | 2020-01-07 08:45:18 +0200 |
---|---|---|
committer | Ehud Katz <ehudkatz@gmail.com> | 2020-01-07 08:45:18 +0200 |
commit | 08de551f4f1087c4dd3220fee8ec328fa168168c (patch) | |
tree | bafa0e9e709954e1ca0a76e2cdb94a13879c460f /lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp | |
parent | 188f72ab20d9523d6ffde8ad8361ecf17bb75946 (diff) | |
download | llvm-08de551f4f1087c4dd3220fee8ec328fa168168c.zip llvm-08de551f4f1087c4dd3220fee8ec328fa168168c.tar.gz llvm-08de551f4f1087c4dd3220fee8ec328fa168168c.tar.bz2 |
[APFloat] Fix fusedMultiplyAdd when `this` equals to `Addend`
Up until now, the arguments to `fusedMultiplyAdd` are passed by
reference. We must save the `Addend` value on the beginning of the
function, before we modify `this`, as they may be the same reference.
To fix this, we now pass the `addend` parameter of `multiplySignificand`
by value (instead of by-ref), and have a default value of zero.
Fix PR44051.
Differential Revision: https://reviews.llvm.org/D70422
Diffstat (limited to 'lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp')
0 files changed, 0 insertions, 0 deletions