commit | b437e6275176d1f0e6571c93c5c269481b09358a | [log] [tgz] |
---|---|---|
author | Florian Hahn <flo@fhahn.com> | Wed Dec 12 18:55:14 2018 +0000 |
committer | Florian Hahn <flo@fhahn.com> | Wed Dec 12 18:55:14 2018 +0000 |
tree | 3d828505d2f048ec6c698d2e6521f872f54690fb | |
parent | 7df42a61d3b73c645b393d6a9f9ea05cec07efd5 [diff] |
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348957 91177308-0d34-0410-b5e6-96231b3b80d8