Skip to content

Commit 276dd08

Browse files
committed
Make use of LLVM_THREAD_LOCAL
1 parent 8e49476 commit 276dd08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/include/llvm/Support/IOSandbox.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111

1212
#if defined(LLVM_ENABLE_IO_SANDBOX) && LLVM_ENABLE_IO_SANDBOX
1313

14+
#include "llvm/Support/Compiler.h"
1415
#include "llvm/Support/ErrorHandling.h"
1516
#include "llvm/Support/SaveAndRestore.h"
1617

1718
namespace llvm::sys::sandbox {
18-
inline thread_local bool Enabled = false;
19+
inline LLVM_THREAD_LOCAL bool Enabled = false;
1920
struct ScopedSetting {
2021
SaveAndRestore<bool> Impl;
2122
};

0 commit comments

Comments
 (0)