[llvm-commits] [llvm] r43196 - /llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp

Evan Cheng evan.cheng at apple.com
Fri Oct 19 21:01:47 PDT 2007


Author: evancheng
Date: Fri Oct 19 23:01:47 2007
New Revision: 43196

URL: http://llvm.org/viewvc/llvm-project?rev=43196&view=rev
Log:
Added missing curly braces which renders the if clause useless in debug build.

Modified:
    llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp

Modified: llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp?rev=43196&r1=43195&r2=43196&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp Fri Oct 19 23:01:47 2007
@@ -171,7 +171,7 @@
 
             // 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 @@
                 // Done with this instruction.
                 break;
               }
+            }
           }
 
         InstructionRearranged:





More information about the llvm-commits mailing list