[Lldb-commits] [lldb] [lldb] Add bitwise shift operators and fix literals' sign in DIL (PR #192506)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Tue May 12 12:49:37 PDT 2026
================
@@ -615,6 +615,10 @@ Interpreter::EvaluateScalarOp(BinaryOpKind kind, lldb::ValueObjectSP lhs,
return value_object(l / r);
case BinaryOpKind::Rem:
return value_object(l % r);
+ case BinaryOpKind::Shl:
+ return value_object(l << r);
----------------
adrian-prantl wrote:
Do we validate that r is in the valid range and is always UBSAN-safe? (Same question for the / and % cases above!)
https://github.com/llvm/llvm-project/pull/192506
More information about the lldb-commits
mailing list