[llvm] r303033 - [ConstantRange] Fix what appear to be copy and paste mistakes in the unittest.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun May 14 21:40:20 PDT 2017
Author: ctopper
Date: Sun May 14 23:40:19 2017
New Revision: 303033
URL: http://llvm.org/viewvc/llvm-project?rev=303033&view=rev
Log:
[ConstantRange] Fix what appear to be copy and paste mistakes in the unittest.
Modified:
llvm/trunk/unittests/IR/ConstantRangeTest.cpp
Modified: llvm/trunk/unittests/IR/ConstantRangeTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/ConstantRangeTest.cpp?rev=303033&r1=303032&r2=303033&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/ConstantRangeTest.cpp (original)
+++ llvm/trunk/unittests/IR/ConstantRangeTest.cpp Sun May 14 23:40:19 2017
@@ -708,13 +708,13 @@ TEST(ConstantRange, MakeGuaranteedNoWrap
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(
More information about the llvm-commits
mailing list