mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-20 11:32:33 +00:00
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
This commit is contained in:
parent
a86037e4d9
commit
89fc0e3ce0
@ -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…
x
Reference in New Issue
Block a user