diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index 29c36e0e4496..57c9727b2313 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(Op<0>()); + return dyn_cast(Op()); } /// 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(); } + Value *getCalledValue() { return Op(); } /// setCalledFunction - Set the function called. void setCalledFunction(Value* Fn) { - Op<0>() = Fn; + Op() = Fn; } // Methods for support type inquiry through isa, cast, and dyn_cast: