diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2004-02-13 06:18:39 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-02-13 06:18:39 +0000 |
| commit | e62589058c5123d84bb4f8239c63e493bb6bb25b (patch) | |
| tree | b6bb4b1e6ff753b444f67e75bba7d08045436647 /lib/ExecutionEngine | |
| parent | 897bf0dea59cbebdd567a79edcee8f5056f8d692 (diff) | |
| download | external_llvm-e62589058c5123d84bb4f8239c63e493bb6bb25b.zip external_llvm-e62589058c5123d84bb4f8239c63e493bb6bb25b.tar.gz external_llvm-e62589058c5123d84bb4f8239c63e493bb6bb25b.tar.bz2 | |
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')
| -rw-r--r-- | lib/ExecutionEngine/Interpreter/Interpreter.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ public: } GenericValue *getFirstVarArg () { - return &(ECStack[ECStack.size () - 2].VarArgs[0]); + return &(ECStack.back ().VarArgs[0]); } //FIXME: private: |
