[llvm] r257752 - InstructionsTest.cpp: Fix a warning. [-Wsign-compare]

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 01:21:50 PST 2016


Author: chapuni
Date: Thu Jan 14 03:21:49 2016
New Revision: 257752

URL: http://llvm.org/viewvc/llvm-project?rev=257752&view=rev
Log:
InstructionsTest.cpp: Fix a warning. [-Wsign-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=257752&r1=257751&r2=257752&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/InstructionsTest.cpp (original)
+++ llvm/trunk/unittests/IR/InstructionsTest.cpp Thu Jan 14 03:21:49 2016
@@ -570,7 +570,7 @@ TEST(InstructionsTest, AlterInvokeBundle
   EXPECT_EQ(Invoke->getCallingConv(), Clone->getCallingConv());
   EXPECT_TRUE(Clone->hasFnAttr(Attribute::AttrKind::Cold));
   EXPECT_EQ(Invoke->getDebugLoc(), Clone->getDebugLoc());
-  EXPECT_EQ(Clone->getNumOperandBundles(), 1);
+  EXPECT_EQ(Clone->getNumOperandBundles(), 1U);
   EXPECT_TRUE(Clone->getOperandBundle("after").hasValue());
 
   delete Invoke;




More information about the llvm-commits mailing list