Skip to content

Commit 900be90

Browse files
authored
Fix typos (llvm#88565)
1 parent 7b6b023 commit 900be90

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ SVal ExprEngine::computeObjectUnderConstruction(
229229
// We are on the top frame of the analysis. We do not know where is the
230230
// object returned to. Conjure a symbolic region for the return value.
231231
// TODO: We probably need a new MemRegion kind to represent the storage
232-
// of that SymbolicRegion, so that we cound produce a fancy symbol
232+
// of that SymbolicRegion, so that we could produce a fancy symbol
233233
// instead of an anonymous conjured symbol.
234234
// TODO: Do we need to track the region to avoid having it dead
235235
// too early? It does die too early, at least in C++17, but because

libc/src/__support/str_to_float.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,10 @@ LIBC_INLINE FloatConvertReturn<T> decimal_exp_to_float(
695695
// If the mantissa is truncated, then the result may be off by the LSB, so
696696
// check if rounding the mantissa up changes the result. If not, then it's
697697
// safe, else use the fallback.
698-
auto secound_output = eisel_lemire<T>({mantissa + 1, exp10}, round);
699-
if (secound_output.has_value()) {
700-
if (opt_output->mantissa == secound_output->mantissa &&
701-
opt_output->exponent == secound_output->exponent) {
698+
auto second_output = eisel_lemire<T>({mantissa + 1, exp10}, round);
699+
if (second_output.has_value()) {
700+
if (opt_output->mantissa == second_output->mantissa &&
701+
opt_output->exponent == second_output->exponent) {
702702
return {opt_output.value(), 0};
703703
}
704704
}

llvm/lib/Analysis/LoopCacheAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ CacheCostTy IndexedReference::computeRefCost(const Loop &L,
315315
RefCost = TripCount;
316316

317317
int Index = getSubscriptIndex(L);
318-
assert(Index >= 0 && "Cound not locate a valid Index");
318+
assert(Index >= 0 && "Could not locate a valid Index");
319319

320320
for (unsigned I = Index + 1; I < getNumSubscripts() - 1; ++I) {
321321
const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(getSubscript(I));

llvm/lib/Support/APInt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2663,7 +2663,7 @@ int APInt::tcDivide(WordType *lhs, const WordType *rhs,
26632663
return false;
26642664
}
26652665

2666-
/// Shift a bignum left Cound bits in-place. Shifted in bits are zero. There are
2666+
/// Shift a bignum left Count bits in-place. Shifted in bits are zero. There are
26672667
/// no restrictions on Count.
26682668
void APInt::tcShiftLeft(WordType *Dst, unsigned Words, unsigned Count) {
26692669
// Don't bother performing a no-op shift.

llvm/lib/Transforms/Scalar/LoopInterchange.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ bool LoopInterchangeLegality::canInterchangeLoops(unsigned InnerLoopId,
976976
}
977977

978978
if (!findInductions(InnerLoop, InnerLoopInductions)) {
979-
LLVM_DEBUG(dbgs() << "Cound not find inner loop induction variables.\n");
979+
LLVM_DEBUG(dbgs() << "Could not find inner loop induction variables.\n");
980980
return false;
981981
}
982982

llvm/test/Transforms/JumpThreading/free_instructions.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
22
; RUN: opt -S -passes=jump-threading -jump-threading-threshold=3 < %s | FileCheck %s
33

4-
; TODO: In this test case, only the stores in %join should cound towards
4+
; TODO: In this test case, only the stores in %join should count towards
55
; the jump threading threshold, as everything else are free instructions.
66
define i32 @free_instructions(i1 %c, ptr %p) {
77
; CHECK-LABEL: @free_instructions(

llvm/utils/lint/common_lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def RunLintOverAllFiles(linter, filenames):
9797
for filename in filenames:
9898
file = open(filename, "r")
9999
if not file:
100-
print("Cound not open %s" % filename)
100+
print("Could not open %s" % filename)
101101
continue
102102
lines = file.readlines()
103103
lint.extend(linter.RunOnFile(filename, lines))

0 commit comments

Comments
 (0)