Author: Nicolai Hähnle Date: 2022-07-27T14:57:34+02:00 New Revision: 5a78ac21569abe2e419b201ca196b21fc3bb00aa
URL: https://github.com/llvm/llvm-project/commit/5a78ac21569abe2e419b201ca196b21fc3bb00aa DIFF: https://github.com/llvm/llvm-project/commit/5a78ac21569abe2e419b201ca196b21fc3bb00aa.diff LOG: clang: include ManagedStatic.h for llvm_shutdown The code relied on ManagedStatic.h being included indirectly. This is about to change as uses of ManagedStatic are removed throughout the codebase. Differential Revision: https://reviews.llvm.org/D130575 Added: Modified: clang/unittests/Interpreter/InterpreterTest.cpp clang/utils/TableGen/TableGen.cpp Removed: ################################################################################ diff --git a/clang/unittests/Interpreter/InterpreterTest.cpp b/clang/unittests/Interpreter/InterpreterTest.cpp index 494926f7c116d..745e36071936a 100644 --- a/clang/unittests/Interpreter/InterpreterTest.cpp +++ b/clang/unittests/Interpreter/InterpreterTest.cpp @@ -20,6 +20,7 @@ #include "clang/Sema/Lookup.h" #include "clang/Sema/Sema.h" +#include "llvm/Support/ManagedStatic.h" #include "llvm/Support/TargetSelect.h" #include "gmock/gmock.h" diff --git a/clang/utils/TableGen/TableGen.cpp b/clang/utils/TableGen/TableGen.cpp index d18a31226e80d..6864ba2040ef9 100644 --- a/clang/utils/TableGen/TableGen.cpp +++ b/clang/utils/TableGen/TableGen.cpp @@ -13,6 +13,7 @@ #include "TableGenBackends.h" // Declares all backends. #include "ASTTableGen.h" #include "llvm/Support/CommandLine.h" +#include "llvm/Support/ManagedStatic.h" #include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/Signals.h" #include "llvm/TableGen/Error.h" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits