diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 00:13:12 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 00:13:12 +0000 |
commit | 89fc0e3ce0fe7538d68c2ac1c2c1e7c67074af08 (patch) | |
tree | ec18ffa787468a6d2a976f056231fa57dc4e99af /lib/Bytecode | |
parent | a86037e4d9b848910b1ccd4d1bc98226f45069dd (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Reader/Reader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/Reader.h b/lib/Bytecode/Reader/Reader.h index 89ab0a59b9..9120377130 100644 --- a/lib/Bytecode/Reader/Reader.h +++ b/lib/Bytecode/Reader/Reader.h @@ -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(); } |