summaryrefslogtreecommitdiff
path: root/include/llvm/Instructions.h
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-06-29 16:21:20 +0000
committerGabor Greif <ggreif@gmail.com>2010-06-29 16:21:20 +0000
commitf500cbdcb17a6739d75f75a746f5d5c522fa7e31 (patch)
treed597043d73decd4e8ea277ad445c8d2c255f1266 /include/llvm/Instructions.h
parentcfbb7d43299a2ce94b83ced4a1cbcfe69e387b52 (diff)
downloadllvm-f500cbdcb17a6739d75f75a746f5d5c522fa7e31.tar.gz
llvm-f500cbdcb17a6739d75f75a746f5d5c522fa7e31.tar.bz2
llvm-f500cbdcb17a6739d75f75a746f5d5c522fa7e31.tar.xz
use ArgOffset constant to prepare for operand rotation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r--include/llvm/Instructions.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 29c36e0e44..57c9727b23 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -1039,17 +1039,17 @@ public:
/// 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: