Skip to content

Commit

Permalink
Fix for windows bot failure (switch uint to unsigned)
Browse files Browse the repository at this point in the history
Fix windows bot failure from b8d2f71:

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

by switching uint to unsigned, as the former is not recognized there.
  • Loading branch information
teresajohnson committed May 8, 2023
1 parent be95b4d commit 57d71cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/unittests/Analysis/MemoryProfileInfoTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 57d71cb

Please sign in to comment.