Skip to content

Commit b397921

Browse files
committed
[runtimes] Fix some duplicate word typos
Those fixes were taken from https://reviews.llvm.org/D137338.
1 parent ba55034 commit b397921

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

libcxx/include/__format/buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class _LIBCPP_TEMPLATE_VIS __output_buffer {
9595
_LIBCPP_HIDE_FROM_ABI void __copy(basic_string_view<_InCharT> __str) {
9696
// When the underlying iterator is a simple iterator the __capacity_ is
9797
// infinite. For a string or container back_inserter it isn't. This means
98-
// adding a large string the the buffer can cause some overhead. In that
98+
// that adding a large string to the buffer can cause some overhead. In that
9999
// case a better approach could be:
100100
// - flush the buffer
101101
// - container.append(__str.begin(), __str.end());

libcxx/test/std/time/time.syn/formatter.duration.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ static void test() {
11761176
check_exception("End of input while parsing the modifier E", SV("{:%E"), 0ms);
11771177
check_exception("End of input while parsing the modifier O", SV("{:%O"), 0ms);
11781178

1179-
// Make sure the the required values work, based on their minimum number of required bits per [time.syn].
1179+
// Make sure the required values work, based on their minimum number of required bits per [time.syn].
11801180
check(SV("23:47:16.854775807"),
11811181
SV("{:%T}"),
11821182
std::chrono::nanoseconds{0x7fff'ffff'ffff'ffffll}); // 64 bit signed value max

libcxxabi/src/private_typeinfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ __vmi_class_type_info::search_below_dst(__dynamic_cast_info* info,
10751075
if (info->search_done)
10761076
break;
10771077
// If we just found a dst_type with a public path to (static_ptr, static_type),
1078-
// then the only reason to continue the search is to make sure sure
1078+
// then the only reason to continue the search is to make sure
10791079
// no other dst_type points to (static_ptr, static_type).
10801080
// If !diamond, then we don't need to search here.
10811081
// if we just found a dst_type with a private path to (static_ptr, static_type),

libunwind/include/mach-o/compact_unwind_encoding.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ enum {
372372
// .quad except_tab1
373373
//
374374
//
375-
// Notes: There is no need for any labels in the the __compact_unwind section.
375+
// Notes: There is no need for any labels in the __compact_unwind section.
376376
// The use of the .set directive is to force the evaluation of the
377377
// range-length at assembly time, instead of generating relocations.
378378
//

libunwind/src/FrameHeaderCache.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class _LIBUNWIND_HIDDEN FrameHeaderCache {
4141

4242
// Can't depend on the C++ standard library in libunwind, so use an array to
4343
// allocate the entries, and two linked lists for ordering unused and recently
44-
// used entries. FIXME: Would the the extra memory for a doubly-linked list
44+
// used entries. FIXME: Would the extra memory for a doubly-linked list
4545
// be better than the runtime cost of traversing a very short singly-linked
4646
// list on a cache miss? The entries themselves are all small and consecutive,
4747
// so unlikely to cause page faults when following the pointers. The memory

libunwind/src/UnwindRegistersRestore.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ DEFINE_LIBUNWIND_FUNCTION(__libunwind_Registers_arm64_jumpto)
673673
ldr d30, [x0, #0x200]
674674
ldr d31, [x0, #0x208]
675675

676-
// Finally, restore sp. This must be done after the the last read from the
676+
// Finally, restore sp. This must be done after the last read from the
677677
// context struct, because it is allocated on the stack, and an exception
678678
// could clobber the de-allocated portion of the stack after sp has been
679679
// restored.

0 commit comments

Comments
 (0)