Fix off-by-one in Interpreter::getFirstVarArg(), which was punishing
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 13 Feb 2004 06:18:39 +0000 (06:18 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 13 Feb 2004 06:18:39 +0000 (06:18 +0000)
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

lib/ExecutionEngine/Interpreter/Interpreter.h

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