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 | fa829be4d348aeec4cb89760960179e71ad5746f (patch) | |
tree | 5715ba4d300721dc59e3700891b6cb037f476ee3 /llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp | |
parent | f5a4e33e497d161491c1ae5320e8cc30e2a7a243 (diff) | |
download | bcm5719-llvm-fa829be4d348aeec4cb89760960179e71ad5746f.tar.gz bcm5719-llvm-fa829be4d348aeec4cb89760960179e71ad5746f.zip |
Start using the new and improve interface to FunctionType arguments
llvm-svn: 11224
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp index 46e5ef0b6ac..9780add37d3 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp +++ b/llvm/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); |