[PATCH] D130574: ClangLinkerWrapper: explicitly #include <atomic>

Nicolai Hähnle via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 26 07:50:14 PDT 2022


nhaehnle created this revision.
nhaehnle added reviewers: efriedma, lattner.
Herald added a project: All.
nhaehnle requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This code relied on implicitly having std::atomic available via the
ManagedStatic.h header.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130574

Files:
  clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp


Index: clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
===================================================================
--- clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
+++ 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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130574.447688.patch
Type: text/x-patch
Size: 457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220726/62969ff4/attachment.bin>


More information about the cfe-commits mailing list