commit | e62589058c5123d84bb4f8239c63e493bb6bb25b | [log] [tgz] |
---|---|---|
author | Brian Gaeke <gaeke@uiuc.edu> | Fri Feb 13 06:18:39 2004 +0000 |
committer | Brian Gaeke <gaeke@uiuc.edu> | Fri Feb 13 06:18:39 2004 +0000 |
tree | b6bb4b1e6ff753b444f67e75bba7d08045436647 | |
parent | 897bf0dea59cbebdd567a79edcee8f5056f8d692 [diff] [blame] |
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 5757327..ce5285e 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -159,7 +159,7 @@ } GenericValue *getFirstVarArg () { - return &(ECStack[ECStack.size () - 2].VarArgs[0]); + return &(ECStack.back ().VarArgs[0]); } //FIXME: private: