summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/IRInterpreter.cpp
diff options
context:
space:
mode:
authorChaoren Lin <chaorenl@google.com>2015-09-16 01:20:34 +0000
committerChaoren Lin <chaorenl@google.com>2015-09-16 01:20:34 +0000
commit3ca7a3eb414d18f748255b532c6b399b12949541 (patch)
treeab6f563a259bb12ed09a9255d777df3df2136d35 /lldb/source/Expression/IRInterpreter.cpp
parent938d701fad8a051645f5fb1785b3802cdd0167a6 (diff)
downloadbcm5719-llvm-3ca7a3eb414d18f748255b532c6b399b12949541.tar.gz
bcm5719-llvm-3ca7a3eb414d18f748255b532c6b399b12949541.zip
Fix off-by-one size check.
llvm-svn: 247766
Diffstat (limited to 'lldb/source/Expression/IRInterpreter.cpp')
-rw-r--r--lldb/source/Expression/IRInterpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp
index 926d1f22b6a..ceaf1f3f64f 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<size_t>(arg_index))
+ if (args.size() <= static_cast<size_t>(arg_index))
{
error.SetErrorString ("Not enough arguments passed in to function");
return false;
OpenPOWER on IntegriCloud