mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
CSRet allows varargs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28409 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
25f88aa7ad
commit
cdbaeb52ae
@ -380,8 +380,9 @@ X86TargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy,
|
||||
bool isTailCall,
|
||||
SDOperand Callee, ArgListTy &Args,
|
||||
SelectionDAG &DAG) {
|
||||
assert((!isVarArg || CallingConv == CallingConv::C) &&
|
||||
"Only C takes varargs!");
|
||||
assert((!isVarArg || CallingConv == CallingConv::C ||
|
||||
CallingConv == CallingConv::CSRet) &&
|
||||
"Only CCC/CSRet takes varargs!");
|
||||
|
||||
// If the callee is a GlobalAddress node (quite common, every direct call is)
|
||||
// turn it into a TargetGlobalAddress node so that legalize doesn't hack it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user