summaryrefslogtreecommitdiff
path: root/lib/CodeGen/PrologEpilogInserter.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-01-31 20:57:50 +0000
committerChad Rosier <mcrosier@apple.com>2013-01-31 20:57:50 +0000
commit3ab115ce8f5262608630d67c28707dbd24361d03 (patch)
treebb21b734dfc8d80ebe196f6e166b6fb7c3c8ad08 /lib/CodeGen/PrologEpilogInserter.cpp
parent63a08e09ae301241d0bdd0618bb0533a1d303cf5 (diff)
downloadllvm-3ab115ce8f5262608630d67c28707dbd24361d03.tar.gz
llvm-3ab115ce8f5262608630d67c28707dbd24361d03.tar.bz2
llvm-3ab115ce8f5262608630d67c28707dbd24361d03.tar.xz
Add braces, so my head doesn't explode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r--lib/CodeGen/PrologEpilogInserter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp
index 87a6528d9b..bca3ede332 100644
--- a/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/lib/CodeGen/PrologEpilogInserter.cpp
@@ -751,7 +751,7 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) {
MachineInstr *MI = I;
bool DoIncr = true;
- for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i)
+ for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
if (MI->getOperand(i).isFI()) {
// Some instructions (e.g. inline asm instructions) can have
// multiple frame indices and/or cause eliminateFrameIndex
@@ -778,6 +778,7 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) {
MI = 0;
break;
}
+ }
if (DoIncr && I != BB->end()) ++I;