mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-11 10:25:41 +00:00
Fix erroneous assertion failure on the following code:
declare int "malloc"(...) ... %reg112 = call int (...) * %malloc( uint %cast1007 ) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@932 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,7 +26,7 @@ CallInst::CallInst(Value *Meth, const vector<Value*> ¶ms,
|
|||||||
|
|
||||||
const MethodType::ParamTypes &PL = MTy->getParamTypes();
|
const MethodType::ParamTypes &PL = MTy->getParamTypes();
|
||||||
assert((params.size() == PL.size()) ||
|
assert((params.size() == PL.size()) ||
|
||||||
(MTy->isVarArg() && params.size() >= PL.size()-1) &&
|
(MTy->isVarArg() && params.size() >= PL.size()) &&
|
||||||
"Calling a function with bad signature");
|
"Calling a function with bad signature");
|
||||||
for (unsigned i = 0; i < params.size(); i++)
|
for (unsigned i = 0; i < params.size(); i++)
|
||||||
Operands.push_back(Use(params[i], this));
|
Operands.push_back(Use(params[i], this));
|
||||||
|
Reference in New Issue
Block a user