[llvm] 124b18b - Fix un/signed mismatch in test introduced in #97719

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 04:02:34 PDT 2024


Author: Orlando Cazalet-Hyams
Date: 2024-07-08T01:24:39+01:00
New Revision: 124b18b09d6bc25ac5f34e24a9b13f4212c01233

URL: https://github.com/llvm/llvm-project/commit/124b18b09d6bc25ac5f34e24a9b13f4212c01233
DIFF: https://github.com/llvm/llvm-project/commit/124b18b09d6bc25ac5f34e24a9b13f4212c01233.diff

LOG: Fix un/signed mismatch in test introduced in #97719

Buildbot:
https://lab.llvm.org/buildbot/#/builders/168/builds/799

Added: 
    

Modified: 
    llvm/unittests/IR/MetadataTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/IR/MetadataTest.cpp b/llvm/unittests/IR/MetadataTest.cpp
index 8dc530dbab838..17573ca57e087 100644
--- a/llvm/unittests/IR/MetadataTest.cpp
+++ b/llvm/unittests/IR/MetadataTest.cpp
@@ -3884,11 +3884,11 @@ TEST_F(DIExpressionTest, extractLeadingOffset) {
   // Single location expressions are permitted.
   EXPECT_TRUE(EXTRACT_FROM(DW_OP_plus_uconst, 2));
   EXPECT_EQ(Offset, 2);
-  EXPECT_EQ(Remaining.size(), 0);
+  EXPECT_EQ(Remaining.size(), 0u);
   // This is also a single-location.
   EXPECT_TRUE(EXTRACT_FROM(DW_OP_LLVM_arg, 0, DW_OP_plus_uconst, 2));
   EXPECT_EQ(Offset, 2);
-  EXPECT_EQ(Remaining.size(), 0);
+  EXPECT_EQ(Remaining.size(), 0u);
   // Variadic locations are not permitted. A non-zero arg is assumed to
   // indicate multiple inputs.
   EXPECT_FALSE(EXTRACT_FROM(DW_OP_LLVM_arg, 1));


        


More information about the llvm-commits mailing list