https://github.com/efriedma-quic commented:
Really, I think the biggest problem with this approach is that it special-cases compile-time casts, and treats them differently from runtime casts. That might be just barely sufficient for specific cases from glib, but it's not comprehensive, and it's very hard for users to understand why specific cases are/are not handled. The semantics would be much simpler if the code for performing indirect calls was changed. Instead of trying to fix function pointers when they're cast, fix them when something tries to call them. Some kind of table lookup, or something with ref.test. Not sure exactly what this looks like; I'm not that familiar with wasm. https://github.com/llvm/llvm-project/pull/153168 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits