mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-02 19:24:25 +00:00
Support var arg intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -987,6 +987,10 @@ void Verifier::VerifyIntrinsicPrototype(Function *F, ...) {
|
||||
for (unsigned ArgNo = 0; 1; ++ArgNo) {
|
||||
int TypeID = va_arg(VA, int);
|
||||
|
||||
if (TypeID == -2) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (TypeID == -1) {
|
||||
if (ArgNo != FTy->getNumParams()+1)
|
||||
CheckFailed("Intrinsic prototype has too many arguments!", F);
|
||||
|
Reference in New Issue
Block a user