[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:25:41 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:

> is_integer || is_enum. I'm not sure why scalars have anything to do with it here TBH.

It is a weird way of saying I want to support other types that can be converted to integer. such as 
```cpp
int *ap;
> (long long)ap
```



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


More information about the lldb-commits mailing list