diff options
-rw-r--r-- | llvm/include/llvm/Support/Threading.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Threading.h b/llvm/include/llvm/Support/Threading.h index 4bef7ec8dd3..e0001e33039 100644 --- a/llvm/include/llvm/Support/Threading.h +++ b/llvm/include/llvm/Support/Threading.h @@ -71,7 +71,8 @@ namespace llvm { /// This macro is the only way you should define your once flag for LLVM's /// call_once. -#define LLVM_DEFINE_ONCE_FLAG(flag) static once_flag flag = Uninitialized +#define LLVM_DEFINE_ONCE_FLAG(flag) \ + static ::llvm::once_flag flag = ::llvm::Uninitialized #endif |