diff --git a/include/llvm/Value.h b/include/llvm/Value.h index ee5f56b1673..1fe6902d8e6 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -128,6 +128,7 @@ public: GlobalVariableVal, // This is an instance of GlobalVariable ConstantVal, // This is an instance of Constant InstructionVal, // This is an instance of Instruction + ValueListVal // This is for bcreader, a special ValTy }; unsigned getValueType() const { return SubclassID; @@ -177,7 +178,9 @@ void Use::set(Value *V) { // the subtype header files to test to see if the value is a subclass... // template <> inline bool isa_impl(const Value &Val) { - return Val.getValueType() == Value::ConstantVal; + return Val.getValueType() == Value::ConstantVal || + Val.getValueType() == Value::FunctionVal || + Val.getValueType() == Value::GlobalVariableVal; } template <> inline bool isa_impl(const Value &Val) { return Val.getValueType() == Value::ArgumentVal;