aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/iOther.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/iOther.h b/include/llvm/iOther.h
index 3e3bfc4bfd..ef99399a0b 100644
--- a/include/llvm/iOther.h
+++ b/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.