From e62589058c5123d84bb4f8239c63e493bb6bb25b Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Fri, 13 Feb 2004 06:18:39 +0000 Subject: [PATCH] Fix off-by-one in Interpreter::getFirstVarArg(), which was punishing any attempts by LLI to use varargs (possibly left over from the introduction of IntrinsicLowering??) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11370 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Interpreter/Interpreter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h index 5757327c208..ce5285e3523 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/lib/ExecutionEngine/Interpreter/Interpreter.h @@ -159,7 +159,7 @@ public: } GenericValue *getFirstVarArg () { - return &(ECStack[ECStack.size () - 2].VarArgs[0]); + return &(ECStack.back ().VarArgs[0]); } //FIXME: private: