From: Chris Lattner Date: Tue, 9 Apr 2002 19:07:44 +0000 (+0000) Subject: Use explicit .get() calls to avoid having to #include Function.h X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d6a8ca745d1278d1e82dfb3bbd65c3fabfe3d68c;p=oota-llvm.git Use explicit .get() calls to avoid having to #include Function.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2208 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/iOther.h b/include/llvm/iOther.h index 3e3bfc4bfd3..ef99399a0be 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(Operands[0]); + return dyn_cast(Operands[0].get()); } Function *getCalledFunction() { - return dyn_cast(Operands[0]); + return dyn_cast(Operands[0].get()); } // getCalledValue - Get a pointer to a method that is invoked by this inst.