[clang] 9643d11 - [clang][sema] NFC, include DarwinSDKInfo header instead of using the forward reference

Alex Lorenz via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 21 12:46:58 PDT 2021


Author: Alex Lorenz
Date: 2021-07-21T12:46:52-07:00
New Revision: 9643d11e1d7f918c0e5184c9488935720d591c90

URL: https://github.com/llvm/llvm-project/commit/9643d11e1d7f918c0e5184c9488935720d591c90
DIFF: https://github.com/llvm/llvm-project/commit/9643d11e1d7f918c0e5184c9488935720d591c90.diff

LOG: [clang][sema] NFC, include DarwinSDKInfo header instead of using the forward reference

This fixes a build issue with an older libc++ on some bots: clang-cmake-x86_64-avx2-linux and clang-ppc64be-linux

Added: 
    

Modified: 
    clang/include/clang/Sema/Sema.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index c200b9b24681..013722cfbe1e 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -37,6 +37,7 @@
 #include "clang/AST/TypeOrdering.h"
 #include "clang/Basic/BitmaskEnum.h"
 #include "clang/Basic/Builtins.h"
+#include "clang/Basic/DarwinSDKInfo.h"
 #include "clang/Basic/ExpressionTraits.h"
 #include "clang/Basic/Module.h"
 #include "clang/Basic/OpenCLOptions.h"
@@ -115,7 +116,6 @@ namespace clang {
   class CodeCompletionTUInfo;
   class CodeCompletionResult;
   class CoroutineBodyStmt;
-  class DarwinSDKInfo;
   class Decl;
   class DeclAccessPair;
   class DeclContext;


        


More information about the cfe-commits mailing list