From 3ca7a3eb414d18f748255b532c6b399b12949541 Mon Sep 17 00:00:00 2001 From: Chaoren Lin Date: Wed, 16 Sep 2015 01:20:34 +0000 Subject: [PATCH] Fix off-by-one size check. llvm-svn: 247766 --- lldb/source/Expression/IRInterpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp index 926d1f22b6aa..ceaf1f3f64fd 100644 --- a/lldb/source/Expression/IRInterpreter.cpp +++ b/lldb/source/Expression/IRInterpreter.cpp @@ -655,7 +655,7 @@ IRInterpreter::Interpret (llvm::Module &module, ai != ae; ++ai, ++arg_index) { - if (args.size() < static_cast(arg_index)) + if (args.size() <= static_cast(arg_index)) { error.SetErrorString ("Not enough arguments passed in to function"); return false;