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
This commit is contained in:
Brian Gaeke 2004-02-13 06:18:39 +00:00
parent c16e56ea41
commit 40b9cf9615

View File

@ -159,7 +159,7 @@ public:
}
GenericValue *getFirstVarArg () {
return &(ECStack[ECStack.size () - 2].VarArgs[0]);
return &(ECStack.back ().VarArgs[0]);
}
//FIXME: private: