User ValueListTy as the type of the ValueList. This avoides the ValueList
authorReid Spencer <rspencer@reidspencer.com>
Sun, 18 Jul 2004 00:13:12 +0000 (00:13 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 18 Jul 2004 00:13:12 +0000 (00:13 +0000)
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

lib/Bytecode/Reader/Reader.h

index 89ab0a59b9411c51e4d4ba4626023e5d1d2e571f..9120377130e93344f9e4cb07e681e15add07ee97 100644 (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(); }