Add braces, so my head doesn't explode.
[oota-llvm.git] / lib / CodeGen / PrologEpilogInserter.cpp
index 87a6528d9bc44c64b0a9944d437d00f5eae355f7..bca3ede33293b9d4b791175f6b3c848491f02968 100644 (file)
@@ -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;