summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/ConstantRangeTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-05-15 04:40:19 +0000
committerCraig Topper <craig.topper@gmail.com>2017-05-15 04:40:19 +0000
commit5c0a5478dbc21fed38349c7e3bdf5347b59c6544 (patch)
tree46eac071338782e2b3cc4b59e8970513b0f12be6 /llvm/unittests/IR/ConstantRangeTest.cpp
parentf6f6fb903e8b371cbd073a1bf6b6026e08e01f44 (diff)
downloadbcm5719-llvm-5c0a5478dbc21fed38349c7e3bdf5347b59c6544.tar.gz
bcm5719-llvm-5c0a5478dbc21fed38349c7e3bdf5347b59c6544.zip
[ConstantRange] Fix what appear to be copy and paste mistakes in the unittest.
llvm-svn: 303033
Diffstat (limited to 'llvm/unittests/IR/ConstantRangeTest.cpp')
-rw-r--r--llvm/unittests/IR/ConstantRangeTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/IR/ConstantRangeTest.cpp b/llvm/unittests/IR/ConstantRangeTest.cpp
index 593580e2f61..c6c9bf6d6b5 100644
--- a/llvm/unittests/IR/ConstantRangeTest.cpp
+++ b/llvm/unittests/IR/ConstantRangeTest.cpp
@@ -708,13 +708,13 @@ TEST(ConstantRange, MakeGuaranteedNoWrapRegion) {
Instruction::Add, ConstantRange(32, /* isFullSet = */ true),
OBO::NoUnsignedWrap);
EXPECT_TRUE(NUWForAllValues.isSingleElement() &&
- NSWForAllValues.getSingleElement()->isMinValue());
+ NUWForAllValues.getSingleElement()->isMinValue());
auto NUWAndNSWForAllValues = ConstantRange::makeGuaranteedNoWrapRegion(
Instruction::Add, ConstantRange(32, /* isFullSet = */ true),
OBO::NoUnsignedWrap | OBO::NoSignedWrap);
EXPECT_TRUE(NUWAndNSWForAllValues.isSingleElement() &&
- NSWForAllValues.getSingleElement()->isMinValue());
+ NUWAndNSWForAllValues.getSingleElement()->isMinValue());
ConstantRange OneToFive(APInt(32, 1), APInt(32, 6));
EXPECT_EQ(ConstantRange::makeGuaranteedNoWrapRegion(
OpenPOWER on IntegriCloud