[APFloat] Enlarge ExponentType to 32bit integer
authorEhud Katz <ehudkatz@gmail.com>
Sun, 3 Nov 2019 15:07:03 +0000 (17:07 +0200)
committerEhud Katz <ehudkatz@gmail.com>
Fri, 22 Nov 2019 19:26:35 +0000 (21:26 +0200)
commit8606d013983d2098ba0d9ea9c2129a0b32a93e33
tree4c3d82b2ebd58d0430c70a9a80c6c25f151c479b
parent8ca7871addc53a8ddb356ae8b99fa6f7e0e8dd15
[APFloat] Enlarge ExponentType to 32bit integer

Enlarge the size of ExponentType from 16bit integer to 32bit. This is
required to prevent exponent overflow/underflow.

Note that IEEEFloat size and alignment don't change in 64bit or 32bit
compilation targets (and in turn, neither does APFloat).

Fixes PR34851.

Differential Revision: https://reviews.llvm.org/D69771
llvm/include/llvm/ADT/APFloat.h
llvm/unittests/ADT/APFloatTest.cpp