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:
Reid Spencer 2004-07-18 00:13:12 +00:00
parent db1863d50c
commit 1d8d08f34a
1 changed files with 1 additions and 1 deletions

View File

@ -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(); }