mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-04 22:28:27 +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:
@@ -159,7 +159,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
GenericValue *getFirstVarArg () {
|
GenericValue *getFirstVarArg () {
|
||||||
return &(ECStack[ECStack.size () - 2].VarArgs[0]);
|
return &(ECStack.back ().VarArgs[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
//FIXME: private:
|
//FIXME: private:
|
||||||
|
Reference in New Issue
Block a user