[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
================
@@ -812,6 +816,47 @@ llvm::Expected<lldb::ValueObjectSP> Interpreter::EvaluateBinaryRemainder(
return EvaluateScalarOp(BinaryOpKind::Rem, lhs, rhs, result_type, location);
}
+llvm::Expected<lldb::ValueObjectSP>
+Interpreter::EvaluateBinaryShift(BinaryOpKind kind, lldb::ValueObjectSP lhs,
+ lldb::ValueObjectSP rhs, uint32_t location) {
+ // Operations {'>>', '<<'} work for:
+ // {integer,unscoped_enum} <-> {integer,unscoped_enum}
+ auto orig_lhs_type = lhs->GetCompilerType();
----------------
adrian-prantl wrote:
```suggestion
CompilerType orig_lhs_type = lhs->GetCompilerType();
```
https://github.com/llvm/llvm-project/pull/192506
More information about the lldb-commits
mailing list