[clang] 3e874bc - ClangLinkerWrapper: explicitly #include <atomic>
Nicolai Hähnle via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 27 05:57:46 PDT 2022
Author: Nicolai Hähnle
Date: 2022-07-27T14:57:34+02:00
New Revision: 3e874bcf064283a5f00e2bef3a086057265563cb
URL: https://github.com/llvm/llvm-project/commit/3e874bcf064283a5f00e2bef3a086057265563cb
DIFF: https://github.com/llvm/llvm-project/commit/3e874bcf064283a5f00e2bef3a086057265563cb.diff
LOG: ClangLinkerWrapper: explicitly #include <atomic>
This code relied on implicitly having std::atomic available via the
ManagedStatic.h header.
Differential Revision: https://reviews.llvm.org/D130574
Added:
Modified:
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
Removed:
################################################################################
diff --git a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
index 44b55c6a45e15..ff0f3665014af 100644
--- a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
+++ b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
@@ -51,6 +51,7 @@
#include "llvm/Support/WithColor.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetMachine.h"
+#include <atomic>
using namespace llvm;
using namespace llvm::opt;
More information about the cfe-commits
mailing list