Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions llvm/lib/Target/AArch64/AArch64StackTagging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,14 +581,14 @@ bool AArch64StackTagging::runOnFunction(Function &Fn) {
Instruction *Base =
insertBaseTaggedPointer(*Fn.getParent(), SInfo.AllocasToInstrument, DT);

int NextTag = 0;
unsigned int NextTag = 0;
for (auto &I : SInfo.AllocasToInstrument) {
memtag::AllocaInfo &Info = I.second;
assert(Info.AI && SIB.getAllocaInterestingness(*Info.AI) ==
llvm::memtag::AllocaInterestingness::kInteresting);
memtag::alignAndPadAlloca(Info, kTagGranuleSize);
AllocaInst *AI = Info.AI;
int Tag = NextTag;
unsigned int Tag = NextTag;
NextTag = (NextTag + 1) % 16;
// Replace alloca with tagp(alloca).
IRBuilder<> IRB(Info.AI->getNextNode());
Expand Down Expand Up @@ -643,7 +643,7 @@ bool AArch64StackTagging::runOnFunction(Function &Fn) {
II->eraseFromParent();
}

memtag::annotateDebugRecords(Info, static_cast<unsigned long>(Tag));
memtag::annotateDebugRecords(Info, Tag);
}

// If we have instrumented at least one alloca, all unrecognized lifetime
Expand Down
Loading