[llvm] r257747 - [UnitTest] Fix warning, NFC.
Joseph Tremoulet via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 13 22:30:20 PST 2016
Author: josepht
Date: Thu Jan 14 00:30:19 2016
New Revision: 257747
URL: http://llvm.org/viewvc/llvm-project?rev=257747&view=rev
Log:
[UnitTest] Fix warning, NFC.
Use an unsigned literal to avoid signedness mismatch in the compare.
Modified:
llvm/trunk/unittests/IR/InstructionsTest.cpp
Modified: llvm/trunk/unittests/IR/InstructionsTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/InstructionsTest.cpp?rev=257747&r1=257746&r2=257747&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/InstructionsTest.cpp (original)
+++ llvm/trunk/unittests/IR/InstructionsTest.cpp Thu Jan 14 00:30:19 2016
@@ -541,7 +541,7 @@ TEST(InstructionsTest, AlterCallBundles)
EXPECT_EQ(Call->getTailCallKind(), Clone->getTailCallKind());
EXPECT_TRUE(Clone->hasFnAttr(Attribute::AttrKind::Cold));
EXPECT_EQ(Call->getDebugLoc(), Clone->getDebugLoc());
- EXPECT_EQ(Clone->getNumOperandBundles(), 1);
+ EXPECT_EQ(Clone->getNumOperandBundles(), 1U);
EXPECT_TRUE(Clone->getOperandBundle("after").hasValue());
}
More information about the llvm-commits
mailing list