[llvm-commits] [llvm] r107146 - /llvm/trunk/include/llvm/Instructions.h
Gabor Greif
ggreif at gmail.com
Tue Jun 29 09:21:21 PDT 2010
Author: ggreif
Date: Tue Jun 29 11:21:20 2010
New Revision: 107146
URL: http://llvm.org/viewvc/llvm-project?rev=107146&view=rev
Log:
use ArgOffset constant to prepare for operand rotation
Modified:
llvm/trunk/include/llvm/Instructions.h
Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=107146&r1=107145&r2=107146&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Tue Jun 29 11:21:20 2010
@@ -1039,17 +1039,17 @@
/// indirect function invocation.
///
Function *getCalledFunction() const {
- return dyn_cast<Function>(Op<0>());
+ return dyn_cast<Function>(Op<ArgOffset -1>());
}
/// getCalledValue - Get a pointer to the function that is invoked by this
/// instruction.
- const Value *getCalledValue() const { return Op<0>(); }
- Value *getCalledValue() { return Op<0>(); }
+ const Value *getCalledValue() const { return Op<ArgOffset -1>(); }
+ Value *getCalledValue() { return Op<ArgOffset -1>(); }
/// setCalledFunction - Set the function called.
void setCalledFunction(Value* Fn) {
- Op<0>() = Fn;
+ Op<ArgOffset -1>() = Fn;
}
// Methods for support type inquiry through isa, cast, and dyn_cast:
More information about the llvm-commits
mailing list