aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/BinaryStreamReader.cpp
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2017-05-30 09:37:11 +0000
committerOliver Stannard <oliver.stannard@arm.com>2017-05-30 09:37:11 +0000
commit3d0f9507d5e3d86d51632f4de6e80155c956ee47 (patch)
tree5bba3ef9bb5eb3dcc2c6d3d0e9866cf5886e772d /llvm/lib/Support/BinaryStreamReader.cpp
parent375b60de744bfe15160ddac28f078d945807118b (diff)
downloadllvm-3d0f9507d5e3d86d51632f4de6e80155c956ee47.zip
llvm-3d0f9507d5e3d86d51632f4de6e80155c956ee47.tar.gz
llvm-3d0f9507d5e3d86d51632f4de6e80155c956ee47.tar.bz2
[MC] Fix constant pools with DenseMap sentinel values
The MC ConstantPool class uses a DenseMap to track generated constants, with the int64_t value of the constant as the key. This fails when values of 0x7fffffffffffffff or 0x7ffffffffffffffe are inserted into the constant pool, as these are sentinel values for DenseMap. The fix is to use std::map instead, which doesn't use sentinel values. Differential revision: https://reviews.llvm.org/D33667 llvm-svn: 304199
Diffstat (limited to 'llvm/lib/Support/BinaryStreamReader.cpp')
0 files changed, 0 insertions, 0 deletions