diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2025-07-16 11:41:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-16 11:41:32 +0100 |
commit | 5b8c15c6e7f3ac17383c12483f466a721b1040ba (patch) | |
tree | 41d75f628ff729c860c4af44a55cf1836084c7a1 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 38be53aa04de8c6d494de8074328ac8907f3f631 (diff) | |
download | llvm-5b8c15c6e7f3ac17383c12483f466a721b1040ba.zip llvm-5b8c15c6e7f3ac17383c12483f466a721b1040ba.tar.gz llvm-5b8c15c6e7f3ac17383c12483f466a721b1040ba.tar.bz2 |
[DebugInfo] Remove getPrevNonDebugInstruction (#148859)
With the advent of intrinsic-less debug-info, we no longer need to
scatter calls to getPrevNonDebugInstruction around the codebase. Remove
most of them -- there are one or two that have the "SkipPseudoOp" flag
turned on, however they don't seem to be in positions where skipping
anything would be reasonable.
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackProtector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackProtector.cpp b/llvm/lib/CodeGen/StackProtector.cpp index 3ec7008..9cc9af8 100644 --- a/llvm/lib/CodeGen/StackProtector.cpp +++ b/llvm/lib/CodeGen/StackProtector.cpp @@ -626,7 +626,7 @@ bool InsertStackProtectors(const TargetMachine *TM, Function *F, // If we're instrumenting a block with a tail call, the check has to be // inserted before the call rather than between it and the return. - Instruction *Prev = CheckLoc->getPrevNonDebugInstruction(); + Instruction *Prev = CheckLoc->getPrevNode(); if (auto *CI = dyn_cast_if_present<CallInst>(Prev)) if (CI->isTailCall() && isInTailCallPosition(*CI, *TM)) CheckLoc = Prev; |