Skip to content

Commit cc354d6

Browse files
authored
[NFC] Fix destroy typo. (#135640)
1 parent 6ba32e8 commit cc354d6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

clang/test/Analysis/Checkers/WebKit/ref-cntbl-base-virtual-dtor-templates.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,12 @@ class BaseClass3 {
337337
void deref() const
338338
{
339339
if (!--refCount)
340-
const_cast<BaseClass3*>(this)->destory();
340+
const_cast<BaseClass3*>(this)->destroy();
341341
}
342342
virtual bool isDerived() { return false; }
343343

344344
private:
345-
void destory();
345+
void destroy();
346346

347347
mutable unsigned refCount { 0 };
348348
};
@@ -353,7 +353,7 @@ class DerivedClass13 : public BaseClass3 {
353353

354354
void UseDerivedClass11(DerivedClass13& obj) { obj.deref(); }
355355

356-
void BaseClass3::destory() {
356+
void BaseClass3::destroy() {
357357
if (isDerived())
358358
delete static_cast<DerivedClass13*>(this);
359359
else

flang/test/Lower/OpenMP/clause-cleanup.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ subroutine test1(a)
1111
! CHECK: %[[EXPR:.*]] = hlfir.elemental {{.*}} -> !hlfir.expr<?x!fir.logical<4>>
1212
! CHECK: %[[COUNT:.*]] = hlfir.count %[[EXPR]]
1313
! CHECK: omp.parallel num_threads(%[[COUNT]] : i32) {
14-
! CHECK-NOT: hlfir.destory %[[EXPR]]
14+
! CHECK-NOT: hlfir.destroy %[[EXPR]]
1515
! CHECK: omp.terminator
1616
! CHECK: }
1717
! CHECK: hlfir.destroy %[[EXPR]]

llvm/lib/Target/X86/X86InstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8961,7 +8961,7 @@ bool X86InstrInfo::isSchedulingBoundary(const MachineInstr &MI,
89618961
Opcode == X86::PLDTILECFGV)
89628962
return true;
89638963

8964-
// Frame setup and destory can't be scheduled around.
8964+
// Frame setup and destroy can't be scheduled around.
89658965
if (MI.getFlag(MachineInstr::FrameSetup) ||
89668966
MI.getFlag(MachineInstr::FrameDestroy))
89678967
return true;

mlir/lib/Dialect/SparseTensor/Transforms/SparseIterationToScf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class SparseIterateOpConverter : public OpConversionPattern<IterateOp> {
265265
blockArgs);
266266
auto yield = llvm::cast<sparse_tensor::YieldOp>(dstBlock->back());
267267
// We can not use ValueRange as the operation holding the values will
268-
// be destoryed.
268+
// be destroyed.
269269
SmallVector<Value> result(yield.getResults());
270270
rewriter.eraseOp(yield);
271271
return result;

0 commit comments

Comments
 (0)