Index: llvm/lib/Target/AArch64/AArch64StackTagging.cpp =================================================================== --- llvm/lib/Target/AArch64/AArch64StackTagging.cpp +++ llvm/lib/Target/AArch64/AArch64StackTagging.cpp @@ -537,7 +537,9 @@ Allocas[AI].LifetimeEnd.push_back(II); } - if (isa(I) || isa(I) || isa(I)) + // No need to consider `resume` instructions, as the tags must be cleared + // by the stack unwind runtime. + if (isa(I) || isa(I)) RetVec.push_back(I); } }