[llvm] 57d71cb - Fix for windows bot failure (switch uint to unsigned)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Mon May 8 11:26:52 PDT 2023


Author: Teresa Johnson
Date: 2023-05-08T11:26:36-07:00
New Revision: 57d71cba0a84ee90356f460b381c1ba5aee5822b

URL: https://github.com/llvm/llvm-project/commit/57d71cba0a84ee90356f460b381c1ba5aee5822b
DIFF: https://github.com/llvm/llvm-project/commit/57d71cba0a84ee90356f460b381c1ba5aee5822b.diff

LOG: Fix for windows bot failure (switch uint to unsigned)

Fix windows bot failure from b8d2f7177c39af7be371ba7f46cb00b9c63ef8f5:

https://lab.llvm.org/buildbot/#/builders/216/builds/20923

by switching uint to unsigned, as the former is not recognized there.

Added: 
    

Modified: 
    llvm/unittests/Analysis/MemoryProfileInfoTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Analysis/MemoryProfileInfoTest.cpp b/llvm/unittests/Analysis/MemoryProfileInfoTest.cpp
index 762cca3ce0092..1ba402276e036 100644
--- a/llvm/unittests/Analysis/MemoryProfileInfoTest.cpp
+++ b/llvm/unittests/Analysis/MemoryProfileInfoTest.cpp
@@ -629,7 +629,7 @@ declare noundef nonnull ptr @_Znam(i64 noundef)
       Call->getMetadata(LLVMContext::MD_callsite));
 
   MDNode *MemProfMD = Call->getMetadata(LLVMContext::MD_memprof);
-  uint Idx = 0;
+  unsigned Idx = 0;
   for (auto &MIBOp : MemProfMD->operands()) {
     auto *MIBMD = cast<const MDNode>(MIBOp);
     MDNode *StackNode = getMIBStackNode(MIBMD);
@@ -663,7 +663,7 @@ TEST_F(MemoryProfileInfoTest, CallStackTestSummary) {
   ASSERT_NE(Index, nullptr);
   auto *CallsiteSummary =
       cast<FunctionSummary>(Index->getGlobalValueSummary(/*guid=*/25));
-  uint Idx = 0;
+  unsigned Idx = 0;
   for (auto &CI : CallsiteSummary->callsites()) {
     CallStack<CallsiteInfo, SmallVector<unsigned>::const_iterator> InstCallsite(
         &CI);
@@ -686,7 +686,7 @@ TEST_F(MemoryProfileInfoTest, CallStackTestSummary) {
   auto *AllocSummary =
       cast<FunctionSummary>(Index->getGlobalValueSummary(/*guid=*/23));
   for (auto &AI : AllocSummary->allocs()) {
-    uint Idx = 0;
+    unsigned Idx = 0;
     for (auto &MIB : AI.MIBs) {
       CallStack<MIBInfo, SmallVector<unsigned>::const_iterator> StackContext(
           &MIB);


        


More information about the llvm-commits mailing list