aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/KnownBitsTest.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2021-09-30 09:54:57 +0100
committerJay Foad <jay.foad@amd.com>2021-10-04 08:57:44 +0100
commita9bceb2b059dc24870882a71baece895fe430107 (patch)
treedf54e088f349b1acf32e20d3819ee000ec0a0677 /llvm/unittests/Support/KnownBitsTest.cpp
parent0873b9bef4e03b4cfc44a4946c11103c763055df (diff)
downloadllvm-a9bceb2b059dc24870882a71baece895fe430107.zip
llvm-a9bceb2b059dc24870882a71baece895fe430107.tar.gz
llvm-a9bceb2b059dc24870882a71baece895fe430107.tar.bz2
[APInt] Stop using soft-deprecated constructors and methods in llvm. NFC.
Stop using APInt constructors and methods that were soft-deprecated in D109483. This fixes all the uses I found in llvm, except for the APInt unit tests which should still test the deprecated methods. Differential Revision: https://reviews.llvm.org/D110807
Diffstat (limited to 'llvm/unittests/Support/KnownBitsTest.cpp')
-rw-r--r--llvm/unittests/Support/KnownBitsTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/KnownBitsTest.cpp b/llvm/unittests/Support/KnownBitsTest.cpp
index b94f18d..c38f99a 100644
--- a/llvm/unittests/Support/KnownBitsTest.cpp
+++ b/llvm/unittests/Support/KnownBitsTest.cpp
@@ -166,7 +166,7 @@ TEST(KnownBitsTest, BinaryExhaustive) {
KnownMulHU.One &= Res;
KnownMulHU.Zero &= ~Res;
- if (!N2.isNullValue()) {
+ if (!N2.isZero()) {
Res = N1.udiv(N2);
KnownUDiv.One &= Res;
KnownUDiv.Zero &= ~Res;