diff options
author | Kazu Hirata <kazu@google.com> | 2023-02-19 23:56:52 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-02-19 23:56:52 -0800 |
commit | a28b252d852c31fb7228e095a213347e6926bb0f (patch) | |
tree | f6c8c2ce5a40b70c93f8498cffba9bb43979b873 /llvm/lib/IR/Value.cpp | |
parent | 2dfa957f120244ddc0238b548282f67d89f1a832 (diff) | |
download | llvm-a28b252d852c31fb7228e095a213347e6926bb0f.zip llvm-a28b252d852c31fb7228e095a213347e6926bb0f.tar.gz llvm-a28b252d852c31fb7228e095a213347e6926bb0f.tar.bz2 |
Use APInt::getSignificantBits instead of APInt::getMinSignedBits (NFC)
Note that getMinSignedBits has been soft-deprecated in favor of
getSignificantBits.
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r-- | llvm/lib/IR/Value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index 1a7ee31..281594d 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -737,7 +737,7 @@ const Value *Value::stripAndAccumulateConstantOffsets( // Stop traversal if the pointer offset wouldn't fit in the bit-width // provided by the Offset argument. This can happen due to AddrSpaceCast // stripping. - if (GEPOffset.getMinSignedBits() > BitWidth) + if (GEPOffset.getSignificantBits() > BitWidth) return V; // External Analysis can return a result higher/lower than the value |