diff options
| author | Gabor Greif <ggreif@gmail.com> | 2010-06-29 16:21:20 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2010-06-29 16:21:20 +0000 |
| commit | 6964ab16f695ef9a7aec3ec03cb6917a65b7dd9c (patch) | |
| tree | 48fd4671cdaaf442489d14cba21f5729a0912e8c /llvm | |
| parent | eab748d4099923fb17e57ff234b361479f20a3e6 (diff) | |
| download | bcm5719-llvm-6964ab16f695ef9a7aec3ec03cb6917a65b7dd9c.tar.gz bcm5719-llvm-6964ab16f695ef9a7aec3ec03cb6917a65b7dd9c.zip | |
use ArgOffset constant to prepare for operand rotation
llvm-svn: 107146
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Instructions.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index 29c36e0e449..57c9727b231 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/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: |

