mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
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:
parent
a5248f25c9
commit
b9dca5e2e6
@ -26,7 +26,7 @@ CallInst::CallInst(Value *Meth, const vector<Value*> ¶ms,
|
||||
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user