Build add instructions of the correct form!
authorChris Lattner <sabre@nondot.org>
Mon, 16 Dec 2002 23:36:57 +0000 (23:36 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 16 Dec 2002 23:36:57 +0000 (23:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5090 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp

index 82dd6467f952760b199ca21d65018a106a15201d..4cae283f7b089fa52f466af2834308dd5b7bb3d8 100644 (file)
@@ -599,7 +599,7 @@ ISel::visitCallInst (CallInst & CI)
 
   // Adjust the stack by `bytesPushed' amount if non-zero
   if (bytesPushed > 0)
-    BuildMI (BB, X86::ADDri32, 2).addReg(X86::ESP).addZImm(bytesPushed);
+    BuildMI (BB, X86::ADDri32,2,X86::ESP).addReg(X86::ESP).addZImm(bytesPushed);
 
   // If there is a return value, scavenge the result from the location the call
   // leaves it in...
index 82dd6467f952760b199ca21d65018a106a15201d..4cae283f7b089fa52f466af2834308dd5b7bb3d8 100644 (file)
@@ -599,7 +599,7 @@ ISel::visitCallInst (CallInst & CI)
 
   // Adjust the stack by `bytesPushed' amount if non-zero
   if (bytesPushed > 0)
-    BuildMI (BB, X86::ADDri32, 2).addReg(X86::ESP).addZImm(bytesPushed);
+    BuildMI (BB, X86::ADDri32,2,X86::ESP).addReg(X86::ESP).addZImm(bytesPushed);
 
   // If there is a return value, scavenge the result from the location the call
   // leaves it in...