diff --git a/llvm/include/llvm/Support/ConvertUTF.h b/llvm/include/llvm/Support/ConvertUTF.h index c892bb3c03cb5..25d46178457d6 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 a52a9f07bacd4..57ce9a20deef4 100644 --- a/llvm/include/llvm/Support/MathExtras.h +++ b/llvm/include/llvm/Support/MathExtras.h @@ -722,7 +722,7 @@ std::enable_if_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 std::enable_if_t, T> SubOverflow(T X, T Y, T &Result) { #if __has_builtin(__builtin_sub_overflow) @@ -748,7 +748,7 @@ std::enable_if_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 std::enable_if_t, T> MulOverflow(T X, T Y, T &Result) { #if __has_builtin(__builtin_mul_overflow)