[clang] [clang][WebAssembly] Handle casted function pointers with different number of arguments (PR #153168)

Derek Schuff via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 12 11:38:46 PDT 2025


dschuff wrote:

Yeah, let me be clear here: I see the GLib problem as being a completely separate problem from the one you have. AFAICS this patch doesn't attempt to address your issue at all, and the solutions I'm brainstorming here also don't attempt to address the issue.

I wouldn't necessarily be against a wasm-specific warning in clang that's essentially a subset of `-Wcast-function-type`. As I mentioned somewhere else, I'm not sure it would be easy to implement given where the lowering logic lives, but we could maybe compromise with some kind of approximation.
also for b), have you filed a bug on Chrome with that as a feature request? It might be possible. It could be that the the cost might be too much for the optimizing tier but maybe the baseline tier. 

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


More information about the cfe-commits mailing list