Skip to content

Commit 0727707

Browse files
committed
printing of small signed integers
1 parent c79c553 commit 0727707

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5264,6 +5264,11 @@ lldb::Format TypeSystemClang::GetFormat(lldb::opaque_compiler_type_t type) {
52645264
return lldb::eFormatBoolean;
52655265
case clang::BuiltinType::Char_S:
52665266
case clang::BuiltinType::SChar:
5267+
// For OCaml, treat signed 8-bit integers as decimal numbers (like int16, int32, int64)
5268+
// rather than characters to ensure consistent SIMD vector display
5269+
if (isLanguageOCaml())
5270+
return lldb::eFormatDecimal;
5271+
return lldb::eFormatChar;
52675272
case clang::BuiltinType::WChar_S:
52685273
case clang::BuiltinType::Char_U:
52695274
case clang::BuiltinType::UChar:

0 commit comments

Comments
 (0)