Fix a bug I introduced in a previous change

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4909 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-12-04 06:56:56 +00:00
parent 42aa3ae90b
commit 33ced56edb
2 changed files with 8 additions and 4 deletions

View File

@ -408,9 +408,11 @@ ISel::visitCallInst (CallInst & CI)
BuildMI (BB, X86::PUSHr32, 1).addReg (X86::EAX);
break;
case cInt:
case cFloat:
BuildMI (BB, X86::PUSHr32, 1).addReg(getReg(v));
case cFloat: {
unsigned Reg = getReg(v);
BuildMI (BB, X86::PUSHr32, 1).addReg(Reg);
break;
}
default:
// FIXME: long/ulong/double args not handled.
visitInstruction (CI);

View File

@ -408,9 +408,11 @@ ISel::visitCallInst (CallInst & CI)
BuildMI (BB, X86::PUSHr32, 1).addReg (X86::EAX);
break;
case cInt:
case cFloat:
BuildMI (BB, X86::PUSHr32, 1).addReg(getReg(v));
case cFloat: {
unsigned Reg = getReg(v);
BuildMI (BB, X86::PUSHr32, 1).addReg(Reg);
break;
}
default:
// FIXME: long/ulong/double args not handled.
visitInstruction (CI);