Fix an obvious mistake: don't change the operands until all of them have been
authorBob Wilson <bob.wilson@apple.com>
Wed, 2 Jun 2010 00:16:08 +0000 (00:16 +0000)
committerBob Wilson <bob.wilson@apple.com>
Wed, 2 Jun 2010 00:16:08 +0000 (00:16 +0000)
commitb2c2a972b075542ab5a02c554ec4a5cc0bcb95a0
treedbaaddc3d61bdd230ce80c437c445911af1167eb
parentb242563741688ab1b3eb4cf6dc981b9364d8841e
Fix an obvious mistake: don't change the operands until all of them have been
checked and it is safe to proceed with the changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105304 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TwoAddressInstructionPass.cpp