[llvm] Fix CI after #138708 (PR #140111)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 15 11:03:18 PDT 2025


================
@@ -510,11 +510,15 @@ GTEST_API_ void PrintTo(wchar_t wc, ::std::ostream* os);
 
 GTEST_API_ void PrintTo(char32_t c, ::std::ostream* os);
 inline void PrintTo(char16_t c, ::std::ostream* os) {
-  PrintTo(ImplicitCast_<char32_t>(c), os);
+  // FIXME: the cast from char16_t to char32_t may be incorrect
+  // for a lone surrogate
+  PrintTo(static_cast<char32_t>(c), os);
----------------
cor3ntin wrote:

https://github.com/google/googletest/issues/4762 

https://github.com/llvm/llvm-project/pull/140111


More information about the llvm-commits mailing list