mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Remove arbitrary limitation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5818 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2ff9343f2b
commit
14e8e29105
@ -210,7 +210,6 @@ void Verifier::visitFunction(Function &F) {
|
|||||||
const FunctionType *FT = F.getFunctionType();
|
const FunctionType *FT = F.getFunctionType();
|
||||||
unsigned NumArgs = F.getArgumentList().size();
|
unsigned NumArgs = F.getArgumentList().size();
|
||||||
|
|
||||||
Assert2(!FT->isVarArg(), "Cannot define varargs functions in LLVM!", &F, FT);
|
|
||||||
Assert2(FT->getNumParams() == NumArgs,
|
Assert2(FT->getNumParams() == NumArgs,
|
||||||
"# formal arguments must match # of arguments for function type!",
|
"# formal arguments must match # of arguments for function type!",
|
||||||
&F, FT);
|
&F, FT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user