diff options
author | Chaoren Lin <chaorenl@google.com> | 2015-09-16 01:20:34 +0000 |
---|---|---|
committer | Chaoren Lin <chaorenl@google.com> | 2015-09-16 01:20:34 +0000 |
commit | 3ca7a3eb414d18f748255b532c6b399b12949541 (patch) | |
tree | ab6f563a259bb12ed09a9255d777df3df2136d35 /lldb/source/Expression/IRInterpreter.cpp | |
parent | 938d701fad8a051645f5fb1785b3802cdd0167a6 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |