Fix bork in doMultiply


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5021 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp
index d9feff1..d9759c4 100644
--- a/lib/Target/X86/InstSelectSimple.cpp
+++ b/lib/Target/X86/InstSelectSimple.cpp
@@ -684,10 +684,11 @@
 /// with the EAX register explicitly.
 ///
 void ISel::visitMul(BinaryOperator &I) {
+  unsigned DestReg = getReg(I);
+  unsigned Op0Reg  = getReg(I.getOperand(0));
+  unsigned Op1Reg  = getReg(I.getOperand(1));
   MachineBasicBlock::iterator MBBI = BB->end();
-  doMultiply (getReg (I), I.getType (),
-	      getReg (I.getOperand (0)), getReg (I.getOperand (1)),
-              BB, MBBI);
+  doMultiply(DestReg, I.getType(), Op0Reg, Op1Reg, BB, MBBI);
 }