diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-18 21:55:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-18 21:55:32 +0000 |
commit | f8f2afb8cc5f080b291faad678e0a256ea44d15f (patch) | |
tree | 379ee6deb37bce643073e445144af18aea82d9ed /lib/ExecutionEngine/Interpreter/Execution.cpp | |
parent | b7e711838f8d6445f1ad7fa032515ad472060c84 (diff) |
Enhancements to pass argc & argv to main if required
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Execution.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 315b9e8fb4..b8cb490934 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -777,6 +777,8 @@ void Interpreter::callMethod(Method *M, const vector<GenericValue> &ArgVals) { // Run through the method arguments and initialize their values... + assert(ArgVals.size() == M->getArgumentList().size() && + "Invalid number of values passed to method invocation!"); unsigned i = 0; for (Method::ArgumentListType::iterator MI = M->getArgumentList().begin(), ME = M->getArgumentList().end(); MI != ME; ++MI, ++i) { |