[llvm-branch-commits] [lldb] [lldb] Add operator `sizeof` to DIL (PR #211772)

Ilia Kuklin via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jul 24 10:46:03 PDT 2026


kuilpd wrote:

> I haven't been following the details of the DIL implementation enough to comment usefully on the details of the implementation, though this looks right, and sizeof (and offsetof) are certainly super handy to have in the DIL.
> 
> In the case of sizeof and offsetof, there's no confusion since those aren't actually functions in code either... But now that you are introducing what looks like call syntax, we should be clear in the documentation that DIL calls don't actually run the target.

Hm, I haven't thought about implementing `offsetof`, I'll take a look at how to implement it.
I'll keep that in mind about the documentation, thanks!

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


More information about the llvm-branch-commits mailing list