[llvm] [Support] Fix the issue where the character being saved in Unicode causes a warning to be treated as an error in Visual Studio 2022. (PR #88513)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 06:42:41 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-support

Author: Harrison,Hao (TSWorld1314)

<details>
<summary>Changes</summary>

 Fix the issue where the character being saved in Unicode causes a warning to be treated as an error in Visual Studio 2022.

---
Full diff: https://github.com/llvm/llvm-project/pull/88513.diff


1 Files Affected:

- (modified) llvm/lib/Support/Parallel.cpp (+1-1) 


``````````diff
diff --git a/llvm/lib/Support/Parallel.cpp b/llvm/lib/Support/Parallel.cpp
index 9b14b05b521160..fe7834c86e3d0e 100644
--- a/llvm/lib/Support/Parallel.cpp
+++ b/llvm/lib/Support/Parallel.cpp
@@ -57,7 +57,7 @@ class ThreadPoolExecutor : public Executor {
     Threads.resize(1);
     std::lock_guard<std::mutex> Lock(Mutex);
     // Use operator[] before creating the thread to avoid data race in .size()
-    // in “safe libc++” mode.
+    // in "safe libc++" mode.
     auto &Thread0 = Threads[0];
     Thread0 = std::thread([this, S] {
       for (unsigned I = 1; I < ThreadCount; ++I) {

``````````

</details>


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


More information about the llvm-commits mailing list