From d5d89967206e1153d24abdb7b22002f7533f55c7 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11224 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Interpreter/Interpreter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ExecutionEngine/Interpreter/Interpreter.cpp') diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/lib/ExecutionEngine/Interpreter/Interpreter.cpp index 46e5ef0b6a..9780add37d 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 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-18-g5258