This fixes functions like
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 30 Oct 2009 14:33:14 +0000 (14:33 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 30 Oct 2009 14:33:14 +0000 (14:33 +0000)
commitc1382b745faa62bc6f2570a193bce6aee8d78885
tree736bab98db7f76ae3c6d2213f0c1165fd4f89a00
parentbc2eb13d008f25a0ffc1bf2d60616f88bf477922
This fixes functions like

void f (int a1, int a2, int a3, int a4, int a5,...)

In ARMTargetLowering::LowerFormalArguments if the function has 4 or
more regular arguments we used to set VarArgsFrameIndex using an
offset of 0, which is only correct if the function has exactly 4
regular arguments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85590 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/2009-10-30.ll [new file with mode: 0644]