Skip to content

Commit b270e7e

Browse files
committed
Fix method names: 2 occurrences of "occured"
1 parent ebdd526 commit b270e7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/swift/SIL/Dominance.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class DominanceInfo : public llvm::DominatorTreeBase<SILBasicBlock> {
4141

4242
/// Return true if the other dominator tree does not match this dominator
4343
/// tree.
44-
inline bool errorOccuredOnComparison(const DominanceInfo &Other) const {
44+
inline bool errorOccurredOnComparison(const DominanceInfo &Other) const {
4545
const auto *R = getRootNode();
4646
const auto *OtherR = Other.getRootNode();
4747

@@ -131,7 +131,7 @@ class PostDominanceInfo : public llvm::DominatorTreeBase<SILBasicBlock> {
131131

132132
/// Return true if the other dominator tree does not match this dominator
133133
/// tree.
134-
inline bool errorOccuredOnComparison(const PostDominanceInfo &Other) const {
134+
inline bool errorOccurredOnComparison(const PostDominanceInfo &Other) const {
135135
const auto *R = getRootNode();
136136
const auto *OtherR = Other.getRootNode();
137137

lib/SIL/Dominance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void DominanceInfo::verify() const {
5555
DominanceInfo OtherDT(F);
5656

5757
// And compare.
58-
if (errorOccuredOnComparison(OtherDT)) {
58+
if (errorOccurredOnComparison(OtherDT)) {
5959
llvm::errs() << "DominatorTree is not up to date!\nComputed:\n";
6060
print(llvm::errs());
6161
llvm::errs() << "\nActual:\n";

0 commit comments

Comments
 (0)