diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/iOther.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/include/llvm/iOther.h b/llvm/include/llvm/iOther.h index 3e3bfc4bfd3..ef99399a0be 100644 --- a/llvm/include/llvm/iOther.h +++ b/llvm/include/llvm/iOther.h @@ -9,7 +9,6 @@ #define LLVM_IOTHER_H #include "llvm/InstrTypes.h" -#include "llvm/Function.h" //===----------------------------------------------------------------------===// // CastInst Class @@ -91,10 +90,10 @@ public: bool hasSideEffects() const { return true; } const Function *getCalledFunction() const { - return dyn_cast<Function>(Operands[0]); + return dyn_cast<Function>(Operands[0].get()); } Function *getCalledFunction() { - return dyn_cast<Function>(Operands[0]); + return dyn_cast<Function>(Operands[0].get()); } // getCalledValue - Get a pointer to a method that is invoked by this inst. |

