[clang] [Clang][CodeGen] Use ptrtoaddr for pointer diff (PR #210729)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 17 10:27:39 PDT 2026


https://github.com/nikic approved this pull request.

LGTM

The issue with subtracting pointers from different address spaces is a pre-existing one, but would be good to file an issue, because the codegen is incorrect.

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


More information about the cfe-commits mailing list