[llvm] 62624a4 - [Support] Fix the issue where the character being saved in Unicode causes a warning to be treated as an error in Visual Studio 2022. (#88513)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 12 13:44:02 PDT 2024
Author: Harrison,Hao
Date: 2024-04-12T15:43:58-05:00
New Revision: 62624a4bfed4ea468dcb677b799aee3518a24bf7
URL: https://github.com/llvm/llvm-project/commit/62624a4bfed4ea468dcb677b799aee3518a24bf7
DIFF: https://github.com/llvm/llvm-project/commit/62624a4bfed4ea468dcb677b799aee3518a24bf7.diff
LOG: [Support] Fix the issue where the character being saved in Unicode causes a warning to be treated as an error in Visual Studio 2022. (#88513)
Fix the issue where the character being saved in Unicode causes a
warning to be treated as an error in Visual Studio 2022.
![image](https://github.com/llvm/llvm-project/assets/57025411/07353525-6520-4b74-b4f5-5b3f5afc47e1)
Added:
Modified:
llvm/lib/Support/Parallel.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/Parallel.cpp b/llvm/lib/Support/Parallel.cpp
index 9b14b05b521160..af35947192c0db 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) {
More information about the llvm-commits
mailing list