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

I see, some of the other places in that function also check `!is_scalar || 
is_integer`.

FWIW, this is all just DIL, which has it's own conversion rules (and 
deliberately doesn't consult the language plugin about conversions). So as a 
long as the tests cover this and conversions do something sane, that should be 
sufficient.

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