From: Dan Gohman Date: Tue, 11 Aug 2009 17:03:18 +0000 (+0000) Subject: Avoid implicitly depending on Instructions.h. X-Git-Tag: android-x86-6.0-r1~1003^2~16905 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d30658c3ffd1e33e98b82750202a9375bf5963ed;p=android-x86%2Fexternal-llvm.git Avoid implicitly depending on Instructions.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78681 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Operator.h b/include/llvm/Operator.h index c62164bcbce..6057c4b877b 100644 --- a/include/llvm/Operator.h +++ b/include/llvm/Operator.h @@ -20,6 +20,8 @@ namespace llvm { +class GetElementPtrInst; + /// Operator - This is a utility class that provides an abstraction for the /// common functionality between Instructions and ConstantExprs. /// @@ -242,7 +244,7 @@ public: return I->getOpcode() == Instruction::GetElementPtr; } static inline bool classof(const Value *V) { - return isa(V) || + return (isa(V) && classof(cast(V))) || (isa(V) && classof(cast(V))); } };