diff options
author | Kazu Hirata <kazu@google.com> | 2021-09-19 13:44:23 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-09-19 13:44:23 -0700 |
commit | 84b07c9b3aa79e073a97290bdd30d98b1941a536 (patch) | |
tree | d2762dca188af521ff1ef93fadac961fa8f295c3 /llvm/lib/IR/Value.cpp | |
parent | 5ba8020326a522c0dfa32f59a472fe20bee4908a (diff) | |
download | llvm-84b07c9b3aa79e073a97290bdd30d98b1941a536.zip llvm-84b07c9b3aa79e073a97290bdd30d98b1941a536.tar.gz llvm-84b07c9b3aa79e073a97290bdd30d98b1941a536.tar.bz2 |
[llvm] Use pop_back_val (NFC)
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r-- | llvm/lib/IR/Value.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index da67da1..a13380b 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -1013,8 +1013,7 @@ bool Value::isTransitiveUsedByMetadataOnly() const { llvm::SmallPtrSet<const User *, 32> Visited; WorkList.insert(WorkList.begin(), user_begin(), user_end()); while (!WorkList.empty()) { - const User *U = WorkList.back(); - WorkList.pop_back(); + const User *U = WorkList.pop_back_val(); Visited.insert(U); // If it is transitively used by a global value or a non-constant value, // it's obviously not only used by metadata. |