Skip to content

Commit

Permalink
Fix typos (#88565)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViToni committed Apr 12, 2024
1 parent 7b6b023 commit 900be90
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ SVal ExprEngine::computeObjectUnderConstruction(
// We are on the top frame of the analysis. We do not know where is the
// object returned to. Conjure a symbolic region for the return value.
// TODO: We probably need a new MemRegion kind to represent the storage
// of that SymbolicRegion, so that we cound produce a fancy symbol
// of that SymbolicRegion, so that we could produce a fancy symbol
// instead of an anonymous conjured symbol.
// TODO: Do we need to track the region to avoid having it dead
// too early? It does die too early, at least in C++17, but because
Expand Down
8 changes: 4 additions & 4 deletions libc/src/__support/str_to_float.h
Original file line number Diff line number Diff line change
Expand Up @@ -695,10 +695,10 @@ LIBC_INLINE FloatConvertReturn<T> decimal_exp_to_float(
// If the mantissa is truncated, then the result may be off by the LSB, so
// check if rounding the mantissa up changes the result. If not, then it's
// safe, else use the fallback.
auto secound_output = eisel_lemire<T>({mantissa + 1, exp10}, round);
if (secound_output.has_value()) {
if (opt_output->mantissa == secound_output->mantissa &&
opt_output->exponent == secound_output->exponent) {
auto second_output = eisel_lemire<T>({mantissa + 1, exp10}, round);
if (second_output.has_value()) {
if (opt_output->mantissa == second_output->mantissa &&
opt_output->exponent == second_output->exponent) {
return {opt_output.value(), 0};
}
}
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Analysis/LoopCacheAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ CacheCostTy IndexedReference::computeRefCost(const Loop &L,
RefCost = TripCount;

int Index = getSubscriptIndex(L);
assert(Index >= 0 && "Cound not locate a valid Index");
assert(Index >= 0 && "Could not locate a valid Index");

for (unsigned I = Index + 1; I < getNumSubscripts() - 1; ++I) {
const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(getSubscript(I));
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Support/APInt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2663,7 +2663,7 @@ int APInt::tcDivide(WordType *lhs, const WordType *rhs,
return false;
}

/// Shift a bignum left Cound bits in-place. Shifted in bits are zero. There are
/// Shift a bignum left Count bits in-place. Shifted in bits are zero. There are
/// no restrictions on Count.
void APInt::tcShiftLeft(WordType *Dst, unsigned Words, unsigned Count) {
// Don't bother performing a no-op shift.
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Scalar/LoopInterchange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ bool LoopInterchangeLegality::canInterchangeLoops(unsigned InnerLoopId,
}

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

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/JumpThreading/free_instructions.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -passes=jump-threading -jump-threading-threshold=3 < %s | FileCheck %s

; TODO: In this test case, only the stores in %join should cound towards
; TODO: In this test case, only the stores in %join should count towards
; the jump threading threshold, as everything else are free instructions.
define i32 @free_instructions(i1 %c, ptr %p) {
; CHECK-LABEL: @free_instructions(
Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/lint/common_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def RunLintOverAllFiles(linter, filenames):
for filename in filenames:
file = open(filename, "r")
if not file:
print("Cound not open %s" % filename)
print("Could not open %s" % filename)
continue
lines = file.readlines()
lint.extend(linter.RunOnFile(filename, lines))
Expand Down

0 comments on commit 900be90

Please sign in to comment.