mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Remove arbitrary limitation
llvm-svn: 5818
This commit is contained in:
parent
28778f929d
commit
869d67b885
@ -210,7 +210,6 @@ void Verifier::visitFunction(Function &F) {
|
||||
const FunctionType *FT = F.getFunctionType();
|
||||
unsigned NumArgs = F.getArgumentList().size();
|
||||
|
||||
Assert2(!FT->isVarArg(), "Cannot define varargs functions in LLVM!", &F, FT);
|
||||
Assert2(FT->getNumParams() == NumArgs,
|
||||
"# formal arguments must match # of arguments for function type!",
|
||||
&F, FT);
|
||||
|
Loading…
Reference in New Issue
Block a user