diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-02-09 04:14:01 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-02-09 04:14:01 +0000 |
| commit | d5d89967206e1153d24abdb7b22002f7533f55c7 (patch) | |
| tree | dd63c2f411779dd7b2087561d14d924440362ba8 /lib/ExecutionEngine | |
| parent | 36cb08ae5bc991bb91f1ab566100c2cdd25c344c (diff) | |
| download | external_llvm-d5d89967206e1153d24abdb7b22002f7533f55c7.zip external_llvm-d5d89967206e1153d24abdb7b22002f7533f55c7.tar.gz external_llvm-d5d89967206e1153d24abdb7b22002f7533f55c7.tar.bz2 | |
Start using the new and improve interface to FunctionType arguments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
| -rw-r--r-- | lib/ExecutionEngine/Interpreter/Interpreter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/lib/ExecutionEngine/Interpreter/Interpreter.cpp index 46e5ef0..9780add 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.cpp +++ b/lib/ExecutionEngine/Interpreter/Interpreter.cpp @@ -89,9 +89,9 @@ GenericValue Interpreter::runFunction(Function *F, // take into account gratuitous differences in declared types, // though. std::vector<GenericValue> ActualArgs; - const unsigned ArgCount = F->getFunctionType()->getParamTypes().size(); + const unsigned ArgCount = F->getFunctionType()->getNumParams(); for (unsigned i = 0; i < ArgCount; ++i) - ActualArgs.push_back (ArgValues[i]); + ActualArgs.push_back(ArgValues[i]); // Set up the function call. callFunction(F, ActualArgs); |
