aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Interpreter.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-02-13 06:18:39 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-02-13 06:18:39 +0000
commite62589058c5123d84bb4f8239c63e493bb6bb25b (patch)
treeb6bb4b1e6ff753b444f67e75bba7d08045436647 /lib/ExecutionEngine/Interpreter/Interpreter.h
parent897bf0dea59cbebdd567a79edcee8f5056f8d692 (diff)
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
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h
index 5757327c20..ce5285e352 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: