aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2020-09-09 10:58:59 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2020-09-09 11:38:30 +0100
commit24ecfdac7b7d195795b6cb0e373cba8bfa7911f4 (patch)
tree9db35e2154a8e06f911056d0bd1a055b0b584f2b /llvm/tools/llvm-objdump/llvm-objdump.cpp
parentb5bc56da8aa23dc57db9d286b0591dbcf9b1bdd3 (diff)
downloadllvm-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