diff options
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64StackTagging.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/llvm/lib/Target/AArch64/AArch64StackTagging.cpp b/llvm/lib/Target/AArch64/AArch64StackTagging.cpp index f27a6311365..6e99c48bf1d 100644 --- a/llvm/lib/Target/AArch64/AArch64StackTagging.cpp +++ b/llvm/lib/Target/AArch64/AArch64StackTagging.cpp @@ -316,8 +316,8 @@ bool AArch64StackTagging::runOnFunction(Function &Fn) {        untagAlloca(AI, Info.LifetimeEnd[0], Size);      } else {        uint64_t Size = Info.AI->getAllocationSizeInBits(*DL).getValue() / 8; -      tagAlloca(AI, TagPCall->getNextNode(), -                IRB.CreatePointerCast(TagPCall, IRB.getInt8PtrTy()), Size); +      Value *Ptr = IRB.CreatePointerCast(TagPCall, IRB.getInt8PtrTy()); +      tagAlloca(AI, &*IRB.GetInsertPoint(), Ptr, Size);        for (auto &RI : RetVec) {          untagAlloca(AI, RI, Size);        } | 

