From 37510f69b4cb8d76064f108d57bebe95984a23ae Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 21 Jan 2021 15:04:40 +0100 Subject: [PATCH] [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. --- lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h index d24c595..24c6d90 100644 --- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h +++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h @@ -1125,7 +1125,7 @@ public: /// 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, -- 2.7.4