diff options
author | Jay Foad <jay.foad@amd.com> | 2020-05-15 17:47:40 +0100 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2020-05-15 18:14:45 +0100 |
commit | 91ef7cb508b66ad937d2357e155be2c7850490b9 (patch) | |
tree | df0d2c732ee80f6af5e7371dc449d6fb5050953a /llvm/lib/IR/Value.cpp | |
parent | dfb99e1a28f4968516df7678481ab963ca73f8c3 (diff) | |
download | llvm-91ef7cb508b66ad937d2357e155be2c7850490b9.zip llvm-91ef7cb508b66ad937d2357e155be2c7850490b9.tar.gz llvm-91ef7cb508b66ad937d2357e155be2c7850490b9.tar.bz2 |
[IR] Trivial cleanups in Use. NFC.
Remove Use::setPrev. It provided no value because it had the same
accessibility as the underlying field Prev, and there was no
corresponding setNext anyway.
Simplify Use::removeFromList.
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r-- | llvm/lib/IR/Value.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index cf54740..6655270 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -831,12 +831,12 @@ void Value::reverseUseList() { while (Current) { Use *Next = Current->Next; Current->Next = Head; - Head->setPrev(&Current->Next); + Head->Prev = &Current->Next; Head = Current; Current = Next; } UseList = Head; - Head->setPrev(&UseList); + Head->Prev = &UseList; } bool Value::isSwiftError() const { |