[clang] a89895a - [Sema] Remove unused member variable MSVCGuidDecl

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 13 00:25:08 PDT 2023


Author: Kazu Hirata
Date: 2023-06-13T00:24:49-07:00
New Revision: a89895ab5742819394e9af7f485e9188f8b24aa4

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

LOG: [Sema] Remove unused member variable MSVCGuidDecl

The last use was removed by:

  commit bab6df86aefc5ea4aa3895da7cf46be37add676d
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   Sat Apr 11 22:15:29 2020 -0700

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index d088aea401c68..115157eaa99a3 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -1158,9 +1158,6 @@ class Sema final {
   /// The C++ "type_info" declaration, which is defined in \<typeinfo>.
   RecordDecl *CXXTypeInfoDecl;
 
-  /// The MSVC "_GUID" struct, which is defined in MSVC header files.
-  RecordDecl *MSVCGuidDecl;
-
   /// The C++ "std::source_location::__impl" struct, defined in
   /// \<source_location>.
   RecordDecl *StdSourceLocationImplDecl;

diff  --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index 532fb834bcf4f..e6507d8808011 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -203,9 +203,8 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer,
       VisContext(nullptr), PragmaAttributeCurrentTargetDecl(nullptr),
       IsBuildingRecoveryCallExpr(false), LateTemplateParser(nullptr),
       LateTemplateParserCleanup(nullptr), OpaqueParser(nullptr), IdResolver(pp),
-      StdInitializerList(nullptr),
-      StdCoroutineTraitsCache(nullptr), CXXTypeInfoDecl(nullptr),
-      MSVCGuidDecl(nullptr), StdSourceLocationImplDecl(nullptr),
+      StdInitializerList(nullptr), StdCoroutineTraitsCache(nullptr),
+      CXXTypeInfoDecl(nullptr), StdSourceLocationImplDecl(nullptr),
       NSNumberDecl(nullptr), NSValueDecl(nullptr), NSStringDecl(nullptr),
       StringWithUTF8StringMethod(nullptr),
       ValueWithBytesObjCTypeMethod(nullptr), NSArrayDecl(nullptr),


        


More information about the cfe-commits mailing list