diff options
author | Nikita Popov <npopov@redhat.com> | 2022-01-28 16:32:13 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-01-28 16:32:13 +0100 |
commit | cf0357a5450e2b0d7e3aed28d3e0d53bc81849a6 (patch) | |
tree | 4404ae7d545ba84105f07eeb270a5d2336384f5a /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | 8a4293f3ef2b3a93ec309d6613f1bc791fafb446 (diff) | |
download | llvm-cf0357a5450e2b0d7e3aed28d3e0d53bc81849a6.zip llvm-cf0357a5450e2b0d7e3aed28d3e0d53bc81849a6.tar.gz llvm-cf0357a5450e2b0d7e3aed28d3e0d53bc81849a6.tar.bz2 |
[BasicBlockUtils] Fix typo in API name (NFC)
detatch -> detach. As this requires touching all uses, also
lower-case it in accordance with the style guide.
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp index d6d6b1a..15c4a64 100644 --- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -59,7 +59,7 @@ static cl::opt<unsigned> MaxDeoptOrUnreachableSuccessorCheckDepth( "is followed by a block that either has a terminating " "deoptimizing call or is terminated with an unreachable")); -void llvm::DetatchDeadBlocks( +void llvm::detachDeadBlocks( ArrayRef<BasicBlock *> BBs, SmallVectorImpl<DominatorTree::UpdateType> *Updates, bool KeepOneInputPHIs) { @@ -110,7 +110,7 @@ void llvm::DeleteDeadBlocks(ArrayRef <BasicBlock *> BBs, DomTreeUpdater *DTU, #endif SmallVector<DominatorTree::UpdateType, 4> Updates; - DetatchDeadBlocks(BBs, DTU ? &Updates : nullptr, KeepOneInputPHIs); + detachDeadBlocks(BBs, DTU ? &Updates : nullptr, KeepOneInputPHIs); if (DTU) DTU->applyUpdates(Updates); |