Static member promotion location?

Hi,

I've been trying to track down where clang promotes member functions
of classes local to a TU to static be static if possible (i.e. drops
the "this" parameter). It seems to be interacting badly with variadic
functions on AArch64, and I'd like to track down exactly what's going
on.

Unfortunately I've not had much luck. Does anyone have any suggestions?

Cheers.

Tim.

This is not something which Clang does. Probably LLVM’s deadargelim pass is doing this.

This is not something which Clang does. Probably LLVM's deadargelim pass is
doing this.

Ah, that would explain why I couldn't find it. Thanks Richard.

Tim.