forked from OSchip/llvm-project
parent
938d701fad
commit
3ca7a3eb41
|
@ -655,7 +655,7 @@ IRInterpreter::Interpret (llvm::Module &module,
|
|||
ai != ae;
|
||||
++ai, ++arg_index)
|
||||
{
|
||||
if (args.size() < static_cast<size_t>(arg_index))
|
||||
if (args.size() <= static_cast<size_t>(arg_index))
|
||||
{
|
||||
error.SetErrorString ("Not enough arguments passed in to function");
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue