[llvm-branch-commits] [lldb] 37510f6 - [lldb][NFC] Fix build with GCC<6

Raphael Isemann via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jan 21 06:10:34 PST 2021


Author: Raphael Isemann
Date: 2021-01-21T15:04:41+01:00
New Revision: 37510f69b4cb8d76064f108d57bebe95984a23ae

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

LOG: [lldb][NFC] Fix build with GCC<6

GCC/libstdc++ before 6.1 can't handle scoped enums as unordered_map keys. LLVM
(and some build) bots officially support some GCC 5.x versions, so this patch
just makes the enum unscoped until we can require GCC 6.x.

Added: 
    

Modified: 
    lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
index d24c5958204f..24c6d90694b7 100644
--- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
+++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
@@ -1125,7 +1125,7 @@ class ScratchTypeSystemClang : public TypeSystemClang {
   /// These ASTs are isolated from the main scratch AST and are each
   /// dedicated to a special language option/feature that makes the contained
   /// AST nodes incompatible with other AST nodes.
-  enum class IsolatedASTKind {
+  enum IsolatedASTKind {
     /// The isolated AST for declarations/types from expressions that imported
     /// type information from a C++ module. The templates from a C++ module
     /// often conflict with the templates we generate from debug information,


        


More information about the llvm-branch-commits mailing list