Add braces, so my head doesn't explode.
authorChad Rosier <mcrosier@apple.com>
Thu, 31 Jan 2013 20:57:50 +0000 (20:57 +0000)
committerChad Rosier <mcrosier@apple.com>
Thu, 31 Jan 2013 20:57:50 +0000 (20:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174088 91177308-0d34-0410-b5e6-96231b3b80d8

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;