Added missing curly braces which renders the if clause useless in debug build.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 20 Oct 2007 04:01:47 +0000 (04:01 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 20 Oct 2007 04:01:47 +0000 (04:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43196 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TwoAddressInstructionPass.cpp

index 9c32388e790a48293661b0ab23314fa1d75db006..53b08d6bf0fb160cd209a38caa81af9dad095425 100644 (file)
@@ -171,7 +171,7 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
 
             // If this instruction is potentially convertible to a true
             // three-address instruction,
-            if (TID->Flags & M_CONVERTIBLE_TO_3_ADDR)
+            if (TID->Flags & M_CONVERTIBLE_TO_3_ADDR) {
               // FIXME: This assumes there are no more operands which are tied
               // to another register.
 #ifndef NDEBUG
@@ -188,6 +188,7 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
                 // Done with this instruction.
                 break;
               }
+            }
           }
 
         InstructionRearranged: