[ConstantRange] Fix what appear to be copy and paste mistakes in the unittest.
authorCraig Topper <craig.topper@gmail.com>
Mon, 15 May 2017 04:40:19 +0000 (04:40 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 15 May 2017 04:40:19 +0000 (04:40 +0000)
llvm-svn: 303033

llvm/unittests/IR/ConstantRangeTest.cpp

index 593580e..c6c9bf6 100644 (file)
@@ -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(