summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86ISelLowering.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2018-12-12 18:55:14 +0000
committerFlorian Hahn <flo@fhahn.com>2018-12-12 18:55:14 +0000
commit81a22d32f7c0318284d755187b417012c58e53e2 (patch)
tree07fc3829b52f206f0ff2f00856b57fc6c1069244 /llvm/lib/Target/X86/X86ISelLowering.cpp
parent5864ab2dc0b4e9866b59748484c20bb13bfbf214 (diff)
downloadbcm5719-llvm-81a22d32f7c0318284d755187b417012c58e53e2.tar.gz
bcm5719-llvm-81a22d32f7c0318284d755187b417012c58e53e2.zip
[ConstantFold] Use getMinSignedBits for APInt in isIndexInRangeOfArrayType.
Indices for getelementptr can be signed so we should use getMinSignedBits instead of getActiveBits here. The function later calls getSExtValue to get the int64_t value, which also checks getMinSignedBits. This fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11647. Reviewers: mssimpso, efriedma, davide Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D55536 llvm-svn: 348957
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud