[clang] [SemaCXX] Make __builtin_addressof more like std::addressof (PR #78035)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 13 06:17:20 PST 2024


cor3ntin wrote:

I think the approach makes sense but I'd like other folks to weight in @AaronBallman @erichkeane.

Note that even if we wanted in the long term to do the work to support overloaded expression (which i would agree is probably not a high priority), fixing the crash seems to be the first order of business.

I also wondered if we should have specific diagnostics but it also doesn't seem worth it.

I haven't done a full review yet - in any this will need a release note.

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


More information about the cfe-commits mailing list