summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter
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
commit242ebf25237b90a393ca276b93562e00e296b156 (patch)
tree210d756dab0abb8f8f31fa8dd4b6690b5fa86014 /llvm/lib/ExecutionEngine/Interpreter
parent337df9b9059ea03eb2a9c274cf885cb3f862b4d2 (diff)
downloadbcm5719-llvm-242ebf25237b90a393ca276b93562e00e296b156.tar.gz
bcm5719-llvm-242ebf25237b90a393ca276b93562e00e296b156.zip
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??) llvm-svn: 11370
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Interpreter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
index 5757327c208..ce5285e3523 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/llvm/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:
OpenPOWER on IntegriCloud