Skip to content

Commit b3a9c34

Browse files
committed
[𝘀𝗽𝗿] changes to main this commit is based on
Created using spr 1.3.4 [skip ci]
1 parent c650067 commit b3a9c34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/AArch64/AArch64StackTagging.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,14 +581,14 @@ bool AArch64StackTagging::runOnFunction(Function &Fn) {
581581
Instruction *Base =
582582
insertBaseTaggedPointer(*Fn.getParent(), SInfo.AllocasToInstrument, DT);
583583

584-
int NextTag = 0;
584+
unsigned int NextTag = 0;
585585
for (auto &I : SInfo.AllocasToInstrument) {
586586
memtag::AllocaInfo &Info = I.second;
587587
assert(Info.AI && SIB.getAllocaInterestingness(*Info.AI) ==
588588
llvm::memtag::AllocaInterestingness::kInteresting);
589589
memtag::alignAndPadAlloca(Info, kTagGranuleSize);
590590
AllocaInst *AI = Info.AI;
591-
int Tag = NextTag;
591+
unsigned int Tag = NextTag;
592592
NextTag = (NextTag + 1) % 16;
593593
// Replace alloca with tagp(alloca).
594594
IRBuilder<> IRB(Info.AI->getNextNode());
@@ -643,7 +643,7 @@ bool AArch64StackTagging::runOnFunction(Function &Fn) {
643643
II->eraseFromParent();
644644
}
645645

646-
memtag::annotateDebugRecords(Info, static_cast<unsigned long>(Tag));
646+
memtag::annotateDebugRecords(Info, Tag);
647647
}
648648

649649
// If we have instrumented at least one alloca, all unrecognized lifetime

0 commit comments

Comments
 (0)