[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/Interpreter.h

Brian Gaeke gaeke at cs.uiuc.edu
Fri Feb 13 00:19:11 PST 2004


Changes in directory llvm/lib/ExecutionEngine/Interpreter:

Interpreter.h updated: 1.59 -> 1.60

---
Log message:

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??)


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
diff -u llvm/lib/ExecutionEngine/Interpreter/Interpreter.h:1.59 llvm/lib/ExecutionEngine/Interpreter/Interpreter.h:1.60
--- llvm/lib/ExecutionEngine/Interpreter/Interpreter.h:1.59	Sun Dec 28 03:44:37 2003
+++ llvm/lib/ExecutionEngine/Interpreter/Interpreter.h	Fri Feb 13 00:18:39 2004
@@ -159,7 +159,7 @@
   }
 
   GenericValue *getFirstVarArg () {
-    return &(ECStack[ECStack.size () - 2].VarArgs[0]);
+    return &(ECStack.back ().VarArgs[0]);
   }
 
   //FIXME: private:





More information about the llvm-commits mailing list