forked from OSchip/llvm-project
User ValueListTy as the type of the ValueList. This avoides the ValueList
from being treated like a Function which can cause the contents of the list to be come invalidated. llvm-svn: 14940
This commit is contained in:
parent
db1863d50c
commit
1d8d08f34a
|
@ -72,7 +72,7 @@ public:
|
|||
/// globals section.
|
||||
/// @brief A list of values as a User of those Values.
|
||||
struct ValueList : public User {
|
||||
ValueList() : User(Type::VoidTy, Value::FunctionVal) {}
|
||||
ValueList() : User(Type::VoidTy, Value::ValueListVal) {}
|
||||
|
||||
// vector compatibility methods
|
||||
unsigned size() const { return getNumOperands(); }
|
||||
|
|
Loading…
Reference in New Issue