[Lldb-commits] [lldb] [lldb] Mark enum types as scalar in clang typesystem (PR #192711)

Ebuka Ezike via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 13 07:28:06 PDT 2026


================
@@ -3202,7 +3202,7 @@ lldb::ValueObjectSP ValueObject::CastToBasicType(CompilerType type) {
   }
 
   if (type.IsInteger()) {
-    if (!is_scalar || is_integer) {
+    if ((is_enum && is_scalar) || !is_scalar || is_integer) {
----------------
da-viper wrote:

> Also, this change is not covered by a test unless I'm missing something.

If you are referring to the `DIL` expression `+SomeEnum`. It wasn't mean't to be part of this PR but If it is a case that is mean to work. I will add a test case to cover that.

https://github.com/llvm/llvm-project/pull/192711


More information about the lldb-commits mailing list