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 @@ -580,14 +580,14 @@ bool AArch64StackTagging::runOnFunction(Function &Fn) {
580
580
Instruction *Base =
581
581
insertBaseTaggedPointer (*Fn.getParent (), SInfo.AllocasToInstrument , DT);
582
582
583
- int NextTag = 0 ;
583
+ unsigned int NextTag = 0 ;
584
584
for (auto &I : SInfo.AllocasToInstrument ) {
585
585
memtag::AllocaInfo &Info = I.second ;
586
586
assert (Info.AI && SIB.getAllocaInterestingness (*Info.AI ) ==
587
587
llvm::memtag::AllocaInterestingness::kInteresting );
588
588
memtag::alignAndPadAlloca (Info, kTagGranuleSize );
589
589
AllocaInst *AI = Info.AI ;
590
- int Tag = NextTag;
590
+ unsigned int Tag = NextTag;
591
591
NextTag = (NextTag + 1 ) % 16 ;
592
592
// Replace alloca with tagp(alloca).
593
593
IRBuilder<> IRB (Info.AI ->getNextNode ());
@@ -642,7 +642,7 @@ bool AArch64StackTagging::runOnFunction(Function &Fn) {
642
642
II->eraseFromParent ();
643
643
}
644
644
645
- memtag::annotateDebugRecords (Info, static_cast < unsigned long >( Tag) );
645
+ memtag::annotateDebugRecords (Info, Tag);
646
646
}
647
647
648
648
// If we have instrumented at least one alloca, all unrecognized lifetime
You can’t perform that action at this time.
0 commit comments