From fa829be4d348aeec4cb89760960179e71ad5746f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 9 Feb 2004 04:14:01 +0000 Subject: Start using the new and improve interface to FunctionType arguments llvm-svn: 11224 --- llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp') 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 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); -- cgit v1.2.3