[llvm] 19e7172 - [LLVM][unittests] Fix type issue in STLExtrasTest.cpp

Caroline Tice via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 20 12:14:51 PST 2024


Author: Caroline Tice
Date: 2024-02-20T12:12:16-08:00
New Revision: 19e71726eee3f35c3f37f6394fc4b001805f9c9a

URL: https://github.com/llvm/llvm-project/commit/19e71726eee3f35c3f37f6394fc4b001805f9c9a
DIFF: https://github.com/llvm/llvm-project/commit/19e71726eee3f35c3f37f6394fc4b001805f9c9a.diff

LOG: [LLVM][unittests] Fix type issue in STLExtrasTest.cpp

Fixes a type error in UniqueNoPred test, that is causing the
ppc64le-lld-multistage-test buildbot to fail.

Added: 
    

Modified: 
    llvm/unittests/ADT/STLExtrasTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/ADT/STLExtrasTest.cpp b/llvm/unittests/ADT/STLExtrasTest.cpp
index cafef5b5fad512..b73891b59f0264 100644
--- a/llvm/unittests/ADT/STLExtrasTest.cpp
+++ b/llvm/unittests/ADT/STLExtrasTest.cpp
@@ -1005,7 +1005,7 @@ TEST(STLExtras, Unique) {
 }
 
 TEST(STLExtras, UniqueNoPred) {
-  std::vector<uint32_t> V = {1, 5, 5, 4, 3, 3, 3};
+  std::vector<int> V = {1, 5, 5, 4, 3, 3, 3};
 
   auto I = llvm::unique(V);
 


        


More information about the llvm-commits mailing list