diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-09-09 10:58:59 +0100 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-09-09 11:38:30 +0100 |
commit | 24ecfdac7b7d195795b6cb0e373cba8bfa7911f4 (patch) | |
tree | 9db35e2154a8e06f911056d0bd1a055b0b584f2b /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | b5bc56da8aa23dc57db9d286b0591dbcf9b1bdd3 (diff) | |
download | llvm-24ecfdac7b7d195795b6cb0e373cba8bfa7911f4.zip llvm-24ecfdac7b7d195795b6cb0e373cba8bfa7911f4.tar.gz llvm-24ecfdac7b7d195795b6cb0e373cba8bfa7911f4.tar.bz2 |
[APFloat] Fix uninitialized variable in IEEEFloat constructors
Some constructors of IEEEFloat do not initialize member variable exponent.
Fix it by initializing exponent with the following values:
For NaNs, the `exponent` is `maxExponent+1`.
For Infinities, the `exponent` is `maxExponent+1`.
For Zeroes, the `exponent` is `maxExponent-1`.
Patch by: @nullptr.cpp (Yang Fan)
Differential Revision: https://reviews.llvm.org/D86997
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions