From fec7c313ab97d67f1335a4b0a8d12e63d517d0a4 Mon Sep 17 00:00:00 2001 From: walter erquinigo Date: Mon, 26 Jun 2023 13:15:14 -0500 Subject: [PATCH] [LLDB] Fix 582582fb474b8cd4103e65c3e5a705b3aff61794 This issue has been seen in - https://lab.llvm.org/buildbot/#/builders/17/builds/39525 - https://lab.llvm.org/buildbot/#/builders/68/builds/55140 The reason is that a new language tag has been added for Mojo, but other recent languages need to be added to the language array so that a name lookup array doesn't have gaps. `ninja check-lldb-shell-process` now passes. --- lldb/include/lldb/lldb-enumerations.h | 3 +++ lldb/source/Target/Language.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lldb/include/lldb/lldb-enumerations.h b/lldb/include/lldb/lldb-enumerations.h index 3981eb0..c78608b 100644 --- a/lldb/include/lldb/lldb-enumerations.h +++ b/lldb/include/lldb/lldb-enumerations.h @@ -490,6 +490,9 @@ enum LanguageType { eLanguageTypeFortran18 = 0x002d, eLanguageTypeAda2005 = 0x002e, eLanguageTypeAda2012 = 0x002f, + eLanguageTypeHIP = 0x0030, + eLanguageTypeAssembly = 0x0031, + eLanguageTypeC_sharp = 0x0032, eLanguageTypeMojo = 0x0033, // Vendor Extensions diff --git a/lldb/source/Target/Language.cpp b/lldb/source/Target/Language.cpp index 77ba946..7878535 100644 --- a/lldb/source/Target/Language.cpp +++ b/lldb/source/Target/Language.cpp @@ -209,6 +209,9 @@ struct language_name_pair language_names[] = { {"fortran18", eLanguageTypeFortran18}, {"ada2005", eLanguageTypeAda2005}, {"ada2012", eLanguageTypeAda2012}, + {"HIP", eLanguageTypeHIP}, + {"assembly", eLanguageTypeAssembly}, + {"c-sharp", eLanguageTypeC_sharp}, {"mojo", eLanguageTypeMojo}, // Vendor Extensions {"assembler", eLanguageTypeMipsAssembler}, -- 2.7.4