================
@@ -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) {
----------------
zhangweize9-cyber wrote:

`is_enum`,`is_integer`,`is_scalar` There are differences among these three.

Specifically, `enum` is divided into regular enumerations and strongly typed 
enumerations; `integer` includes keywords such as `bool`, `char`, and `short`; 
and `scalar` includes keywords such as `integer`, floating-point types, 
members, pointers, and null pointers.

https://github.com/llvm/llvm-project/pull/192711
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to