[llvm-branch-commits] [llvm-branch] r107466 - /llvm/branches/wendling/eh/include/llvm/Instructions.h

Bill Wendling isanbard at gmail.com
Fri Jul 2 03:20:05 PDT 2010


Author: void
Date: Fri Jul  2 05:20:05 2010
New Revision: 107466

URL: http://llvm.org/viewvc/llvm-project?rev=107466&view=rev
Log:
Use the correct operand offset.

Modified:
    llvm/branches/wendling/eh/include/llvm/Instructions.h

Modified: llvm/branches/wendling/eh/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/wendling/eh/include/llvm/Instructions.h?rev=107466&r1=107465&r2=107466&view=diff
==============================================================================
--- llvm/branches/wendling/eh/include/llvm/Instructions.h (original)
+++ llvm/branches/wendling/eh/include/llvm/Instructions.h Fri Jul  2 05:20:05 2010
@@ -2473,7 +2473,7 @@
   /// Provide fast operand accessors
   DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
 
-  unsigned getNumArgOperands() const { return getNumOperands() - 3; }
+  unsigned getNumArgOperands() const { return getNumOperands() - 4; }
   Value *getArgOperand(unsigned i) const { return getOperand(i); }
   void setArgOperand(unsigned i, Value *v) { setOperand(i, v); }
 





More information about the llvm-branch-commits mailing list