[llvm-branch-commits] [llvm-branch] r100523 - /llvm/branches/ggreif/CallInst-operands/include/llvm/Instructions.h

Gabor Greif ggreif at gmail.com
Tue Apr 6 06:42:21 PDT 2010


Author: ggreif
Date: Tue Apr  6 08:42:20 2010
New Revision: 100523

URL: http://llvm.org/viewvc/llvm-project?rev=100523&view=rev
Log:
fix setCalledFunction for CallInst

Modified:
    llvm/branches/ggreif/CallInst-operands/include/llvm/Instructions.h

Modified: llvm/branches/ggreif/CallInst-operands/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/include/llvm/Instructions.h?rev=100523&r1=100522&r2=100523&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/include/llvm/Instructions.h (original)
+++ llvm/branches/ggreif/CallInst-operands/include/llvm/Instructions.h Tue Apr  6 08:42:20 2010
@@ -1041,7 +1041,7 @@
 
   /// setCalledFunction - Set the function called.
   void setCalledFunction(Value* Fn) {
-    Op<0>() = Fn;
+    Op<-1>() = Fn;
   }
 
   // Methods for support type inquiry through isa, cast, and dyn_cast:





More information about the llvm-branch-commits mailing list