diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-05 00:16:14 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-05 00:16:14 -0700 |
commit | 2c4d52467a25aed5ec9ed868fe8b74a1a67d1535 (patch) | |
tree | aa0c2a4b7470216a0e1b9216be67e2167e963a20 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 400fef081adbafc358858709861cdb14303de0e9 (diff) | |
download | llvm-2c4d52467a25aed5ec9ed868fe8b74a1a67d1535.zip llvm-2c4d52467a25aed5ec9ed868fe8b74a1a67d1535.tar.gz llvm-2c4d52467a25aed5ec9ed868fe8b74a1a67d1535.tar.bz2 |
[Transforms/Utils] Use predecessors (NFC)
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index a060975..42cdece 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1126,7 +1126,7 @@ bool llvm::TryToSimplifyUncondBranchFromEmptyBlock(BasicBlock *BB, // If there is more than one pred of succ, and there are PHI nodes in // the successor, then we need to add incoming edges for the PHI nodes // - const PredBlockVector BBPreds(pred_begin(BB), pred_end(BB)); + const PredBlockVector BBPreds(predecessors(BB)); // Loop over all of the PHI nodes in the successor of BB. for (BasicBlock::iterator I = Succ->begin(); isa<PHINode>(I); ++I) { |