Fix erroneous assertion failure on the following code:

declare int "malloc"(...)

...

%reg112 = call int (...) * %malloc( uint %cast1007 )

llvm-svn: 932
This commit is contained in:
Chris Lattner 2001-10-21 21:54:51 +00:00
parent 28a63e2972
commit b57ac6f4bd
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ CallInst::CallInst(Value *Meth, const vector<Value*> &params,
const MethodType::ParamTypes &PL = MTy->getParamTypes();
assert((params.size() == PL.size()) ||
(MTy->isVarArg() && params.size() >= PL.size()-1) &&
(MTy->isVarArg() && params.size() >= PL.size()) &&
"Calling a function with bad signature");
for (unsigned i = 0; i < params.size(); i++)
Operands.push_back(Use(params[i], this));