[llvm] Fix a few typos (PR #110844)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 07:00:41 PDT 2024


https://github.com/spacey-sooty created https://github.com/llvm/llvm-project/pull/110844

None

>From 35db4d3106a54a2ec242ab3bbc6b714dcdcfcd07 Mon Sep 17 00:00:00 2001
From: Jade <spacey-sooty at proton.me>
Date: Wed, 2 Oct 2024 21:56:05 +0800
Subject: [PATCH 1/2] Update ConvertUTF.h

---
 llvm/include/llvm/Support/ConvertUTF.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/include/llvm/Support/ConvertUTF.h b/llvm/include/llvm/Support/ConvertUTF.h
index c892bb3c03cb56..25d46178457d6e 100644
--- a/llvm/include/llvm/Support/ConvertUTF.h
+++ b/llvm/include/llvm/Support/ConvertUTF.h
@@ -47,7 +47,7 @@
 
     Conversions between UTF32, UTF-16, and UTF-8.  Header file.
 
-    Several funtions are included here, forming a complete set of
+    Several functions are included here, forming a complete set of
     conversions between the three formats.  UTF-7 is not included
     here, but is handled in a separate source file.
 

>From 02048039e939afe73c8a95a8ab9fcdae27a393de Mon Sep 17 00:00:00 2001
From: Jade <spacey-sooty at proton.me>
Date: Wed, 2 Oct 2024 21:57:53 +0800
Subject: [PATCH 2/2] Update MathExtras.h

---
 llvm/include/llvm/Support/MathExtras.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/include/llvm/Support/MathExtras.h b/llvm/include/llvm/Support/MathExtras.h
index a52a9f07bacd4b..57ce9a20deef4f 100644
--- a/llvm/include/llvm/Support/MathExtras.h
+++ b/llvm/include/llvm/Support/MathExtras.h
@@ -722,7 +722,7 @@ std::enable_if_t<std::is_signed_v<T>, T> AddOverflow(T X, T Y, T &Result) {
 }
 
 /// Subtract two signed integers, computing the two's complement truncated
-/// result, returning true if an overflow ocurred.
+/// result, returning true if an overflow occurred.
 template <typename T>
 std::enable_if_t<std::is_signed_v<T>, T> SubOverflow(T X, T Y, T &Result) {
 #if __has_builtin(__builtin_sub_overflow)
@@ -748,7 +748,7 @@ std::enable_if_t<std::is_signed_v<T>, T> SubOverflow(T X, T Y, T &Result) {
 }
 
 /// Multiply two signed integers, computing the two's complement truncated
-/// result, returning true if an overflow ocurred.
+/// result, returning true if an overflow occurred.
 template <typename T>
 std::enable_if_t<std::is_signed_v<T>, T> MulOverflow(T X, T Y, T &Result) {
 #if __has_builtin(__builtin_mul_overflow)



More information about the llvm-commits mailing list