File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments