summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CodeGenCommonISel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenCommonISel.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenCommonISel.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/CodeGenCommonISel.cpp b/llvm/lib/CodeGen/CodeGenCommonISel.cpp
index f809120f02fa..877aa69c3e58 100644
--- a/llvm/lib/CodeGen/CodeGenCommonISel.cpp
+++ b/llvm/lib/CodeGen/CodeGenCommonISel.cpp
@@ -129,9 +129,7 @@ llvm::findSplitPointForStackProtector(MachineBasicBlock *BB,
MachineBasicBlock::iterator Start = BB->begin();
MachineBasicBlock::iterator Previous = SplitPoint;
- do {
- --Previous;
- } while (Previous->isDebugInstr());
+ --Previous;
if (TII.isTailCall(*SplitPoint) &&
Previous->getOpcode() == TII.getCallFrameDestroyOpcode()) {
@@ -144,7 +142,7 @@ llvm::findSplitPointForStackProtector(MachineBasicBlock *BB,
// ADJCALLSTACKUP ...
// TAILJMP somewhere
// On the other hand, it could be an unrelated call in which case this tail
- // call has no register moves of its own and should be the split point. For
+ // call has to register moves of its own and should be the split point. For
// example:
// ADJCALLSTACKDOWN
// CALL something_else