diff options
author | Kazu Hirata <kazu@google.com> | 2021-01-18 10:16:36 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-01-18 10:16:36 -0800 |
commit | 23b0ab2acb424e3e74722c0183e5c5ac84e6ea4c (patch) | |
tree | 97bf416d1172a0afe155a7494f4a1f22330b2011 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | dc300beba7a849aac44c39ccc450a575db99bc14 (diff) | |
download | llvm-23b0ab2acb424e3e74722c0183e5c5ac84e6ea4c.zip llvm-23b0ab2acb424e3e74722c0183e5c5ac84e6ea4c.tar.gz llvm-23b0ab2acb424e3e74722c0183e5c5ac84e6ea4c.tar.bz2 |
[llvm] Use the default value of drop_begin (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 2c636e1a..c2fccab 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -661,7 +661,7 @@ bool CodeGenPrepare::eliminateFallThrough(Function &F) { // Use a temporary array to avoid iterator being invalidated when // deleting blocks. SmallVector<WeakTrackingVH, 16> Blocks; - for (auto &Block : llvm::drop_begin(F, 1)) + for (auto &Block : llvm::drop_begin(F)) Blocks.push_back(&Block); SmallSet<WeakTrackingVH, 16> Preds; @@ -747,7 +747,7 @@ bool CodeGenPrepare::eliminateMostlyEmptyBlocks(Function &F) { // as we remove them. // Note that this intentionally skips the entry block. SmallVector<WeakTrackingVH, 16> Blocks; - for (auto &Block : llvm::drop_begin(F, 1)) + for (auto &Block : llvm::drop_begin(F)) Blocks.push_back(&Block); for (auto &Block : Blocks) { |