From: Brian Gaeke Date: Fri, 13 Feb 2004 06:18:39 +0000 (+0000) Subject: Fix off-by-one in Interpreter::getFirstVarArg(), which was punishing X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e62589058c5123d84bb4f8239c63e493bb6bb25b;p=oota-llvm.git 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 --- 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: