diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-19 21:34:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-19 21:34:04 +0000 |
commit | cdbaeb52ae36bb4a94cc2101e0babbaf5c148eb1 (patch) | |
tree | e4fa2b56fcc5e05e5ca14dac4c6e61bdab3edf09 /lib | |
parent | 25f88aa7ad2105426fe82189b6694dd07ff5b91d (diff) |
CSRet allows varargs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 849b8d5eae..78600804f6 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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. |