diff options
author | Joshua Peterson <petersonjm1@gmail.com> | 2025-10-08 07:21:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-08 11:21:45 +0000 |
commit | 8e3eeb854b662beca3e0476199ea6d253dc89752 (patch) | |
tree | 48a5c604e7bce0f5e20f2c05d57bad9e6a2636c8 /llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp | |
parent | 7da07c081c081edb9f6706cb8ec298c3cee8ec17 (diff) | |
download | llvm-8e3eeb854b662beca3e0476199ea6d253dc89752.zip llvm-8e3eeb854b662beca3e0476199ea6d253dc89752.tar.gz llvm-8e3eeb854b662beca3e0476199ea6d253dc89752.tar.bz2 |
[lldb] Fix off-by-one error in ToDwarfSourceLanguage (#162315)
The ToDwarfSourceLanguage function incorrectly excluded languages that
equal eLanguageTypeLastStandardLanguage. The comparison used `<` instead
of `<=`, causing the last standard language to fall through to the
default case and return std::nullopt.
This broke language plugins that use eLanguageTypeLastStandardLanguage
(currently Mojo at 0x0033) as their language code, preventing proper
DWARF language conversion and breaking REPL functionality.
The fix changes the comparison from `<` to `<=` to include the last
standard language in the automatic conversion to DWARF source language.
This is a regression from commit
7f51a2a47d2e706d04855b0e41690ebafa2b3238 which introduced the
ToDwarfSourceLanguage function.
Diffstat (limited to 'llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp')
0 files changed, 0 insertions, 0 deletions