diff options
| author | Jade <spacey-sooty@proton.me> | 2025-03-09 02:55:49 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-08 18:55:49 +0000 |
| commit | 90b1e5bc8aa03099c84cba6898ba26e40df398fa (patch) | |
| tree | 9fcc330de8f0d7be0495178f75988f4976656951 | |
| parent | 3ac24236aac596e81641a5e551cefe5227de2bd3 (diff) | |
| download | llvm-90b1e5bc8aa03099c84cba6898ba26e40df398fa.zip llvm-90b1e5bc8aa03099c84cba6898ba26e40df398fa.tar.gz llvm-90b1e5bc8aa03099c84cba6898ba26e40df398fa.tar.bz2 | |
[llvm][NFC]Fix a few typos (#110844)
| -rw-r--r-- | llvm/include/llvm/Support/ConvertUTF.h | 2 | ||||
| -rw-r--r-- | llvm/include/llvm/Support/MathExtras.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/ConvertUTF.h b/llvm/include/llvm/Support/ConvertUTF.h index c892bb3..25d4617 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. diff --git a/llvm/include/llvm/Support/MathExtras.h b/llvm/include/llvm/Support/MathExtras.h index 5a6f51a..07f7bab 100644 --- a/llvm/include/llvm/Support/MathExtras.h +++ b/llvm/include/llvm/Support/MathExtras.h @@ -723,7 +723,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) @@ -749,7 +749,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) |
