[llvm] f7db8b7 - llvm-reduce: Fix variable name typo
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 22 08:07:48 PDT 2022
Author: Matt Arsenault
Date: 2022-04-22T11:07:41-04:00
New Revision: f7db8b7a9c6478180af8493d7c08b24ac2176403
URL: https://github.com/llvm/llvm-project/commit/f7db8b7a9c6478180af8493d7c08b24ac2176403
DIFF: https://github.com/llvm/llvm-project/commit/f7db8b7a9c6478180af8493d7c08b24ac2176403.diff
LOG: llvm-reduce: Fix variable name typo
Added:
Modified:
llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp b/llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
index d4e3952a050b9..a9b9db2d09ee7 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
@@ -29,13 +29,13 @@ using namespace llvm;
static void replaceBranchTerminator(BasicBlock &BB,
const DenseSet<BasicBlock *> &BBsToKeep) {
auto *Term = BB.getTerminator();
- std::vector<BasicBlock *> ChunkSucessors;
+ std::vector<BasicBlock *> ChunkSuccessors;
for (auto *Succ : successors(&BB))
if (BBsToKeep.count(Succ))
- ChunkSucessors.push_back(Succ);
+ ChunkSuccessors.push_back(Succ);
// BB only references Chunk BBs
- if (ChunkSucessors.size() == Term->getNumSuccessors())
+ if (ChunkSuccessors.size() == Term->getNumSuccessors())
return;
bool IsBranch = isa<BranchInst>(Term) || isa<InvokeInst>(Term);
@@ -46,7 +46,7 @@ static void replaceBranchTerminator(BasicBlock &BB,
Term->replaceAllUsesWith(UndefValue::get(Term->getType()));
Term->eraseFromParent();
- if (ChunkSucessors.empty()) {
+ if (ChunkSuccessors.empty()) {
auto *FnRetTy = BB.getParent()->getReturnType();
ReturnInst::Create(BB.getContext(),
FnRetTy->isVoidTy() ? nullptr : UndefValue::get(FnRetTy),
@@ -55,12 +55,12 @@ static void replaceBranchTerminator(BasicBlock &BB,
}
if (IsBranch)
- BranchInst::Create(ChunkSucessors[0], &BB);
+ BranchInst::Create(ChunkSuccessors[0], &BB);
if (Address) {
auto *NewIndBI =
- IndirectBrInst::Create(Address, ChunkSucessors.size(), &BB);
- for (auto *Dest : ChunkSucessors)
+ IndirectBrInst::Create(Address, ChunkSuccessors.size(), &BB);
+ for (auto *Dest : ChunkSuccessors)
NewIndBI->addDestination(Dest);
}
}
More information about the llvm-commits
mailing list