[llvm] 84745da - [Analysis] Fix a warning (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 16:26:33 PST 2024


Author: Kazu Hirata
Date: 2024-11-06T16:26:27-08:00
New Revision: 84745da74c8aa2749510c26cf0e3a35bececfa30

URL: https://github.com/llvm/llvm-project/commit/84745da74c8aa2749510c26cf0e3a35bececfa30
DIFF: https://github.com/llvm/llvm-project/commit/84745da74c8aa2749510c26cf0e3a35bececfa30.diff

LOG: [Analysis] Fix a warning (NFC)

This patch fixes:

  third-party/unittest/googletest/include/gtest/gtest.h:1379:11:
  error: comparison of integers of different signs: 'const unsigned
  int' and 'const int' [-Werror,-Wsign-compare]

Added: 
    

Modified: 
    llvm/unittests/Analysis/LastRunTrackingAnalysisTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Analysis/LastRunTrackingAnalysisTest.cpp b/llvm/unittests/Analysis/LastRunTrackingAnalysisTest.cpp
index 37b9d1edbf29d2..13ca0bc161a0f4 100644
--- a/llvm/unittests/Analysis/LastRunTrackingAnalysisTest.cpp
+++ b/llvm/unittests/Analysis/LastRunTrackingAnalysisTest.cpp
@@ -111,7 +111,7 @@ TEST_F(LastRunTrackingAnalysisTest, SkipTest) {
   MPM.addPass(ModuleNoopPass(BitMap, 8, &PassA, false));
   MPM.run(M, MAM);
 
-  ASSERT_EQ(BitMap, 0b110101001);
+  ASSERT_EQ(BitMap, 0b110101001U);
 }
 
 } // namespace


        


More information about the llvm-commits mailing list