forked from OSchip/llvm-project
parent
5bdc7127af
commit
01dd6df5f3
|
@ -380,8 +380,9 @@ X86TargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy,
|
||||||
bool isTailCall,
|
bool isTailCall,
|
||||||
SDOperand Callee, ArgListTy &Args,
|
SDOperand Callee, ArgListTy &Args,
|
||||||
SelectionDAG &DAG) {
|
SelectionDAG &DAG) {
|
||||||
assert((!isVarArg || CallingConv == CallingConv::C) &&
|
assert((!isVarArg || CallingConv == CallingConv::C ||
|
||||||
"Only C takes varargs!");
|
CallingConv == CallingConv::CSRet) &&
|
||||||
|
"Only CCC/CSRet takes varargs!");
|
||||||
|
|
||||||
// If the callee is a GlobalAddress node (quite common, every direct call is)
|
// 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.
|
// turn it into a TargetGlobalAddress node so that legalize doesn't hack it.
|
||||||
|
|
Loading…
Reference in New Issue