[all-commits] [llvm/llvm-project] 884a65: [Support] Replace Windows __declspec(thread) with ...
rgal via All-commits
all-commits at lists.llvm.org
Wed Jan 15 03:18:26 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 884a65af5ceebce76519749ed6eb9a86d0596771
https://github.com/llvm/llvm-project/commit/884a65af5ceebce76519749ed6eb9a86d0596771
Author: Russell Gallop <russell.gallop at sony.com>
Date: 2020-01-15 (Wed, 15 Jan 2020)
Changed paths:
M llvm/include/llvm/Support/Compiler.h
Log Message:
-----------
[Support] Replace Windows __declspec(thread) with thread_local for LLVM_THREAD_LOCAL
Windows minimum host tools version is now VS2017, which supports C++11
thread_local so use this for LLVM_THREAD_LOCAL instead of
declspec(thread). According to [1], thread_local is implemented with
declspec(thread) so this should be NFC.
[1] https://docs.microsoft.com/en-us/cpp/cpp/thread?view=vs-2017
Differential Revision: https://reviews.llvm.org/D72399
More information about the All-commits
mailing list