mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
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
This commit is contained in:
parent
897bf0dea5
commit
e62589058c
@ -159,7 +159,7 @@ public:
|
||||
}
|
||||
|
||||
GenericValue *getFirstVarArg () {
|
||||
return &(ECStack[ECStack.size () - 2].VarArgs[0]);
|
||||
return &(ECStack.back ().VarArgs[0]);
|
||||
}
|
||||
|
||||
//FIXME: private:
|
||||
|
Loading…
Reference in New Issue
Block a user