[PATCH] D19275: Do not register incompatible C++ destructors with __cxa_atexit

JF Bastien via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 27 10:44:31 PDT 2016


jfb added a subscriber: pcc.
jfb added a comment.

> I guess there's a more general issue here which is that LLVM appears to be more permissive about prototype mismatch than wasm. Specifically, I'm thinking about how swifterror relies on being able to pass extra parameters to a function that doesn't expect them and not get UB. I guess as long as LLVM doesn't introduce any prototype mismatch during optimization, that's OK, but this seems like it would be a real problem if we ever wanted to port swift to wasm.


Yeah @dschuff, @sunfish and I were also talking about `__cxa_pure_virtual` being in the same signature-type-mismatch category. I wonder if this also makes CFI sad, /cc @pcc.


http://reviews.llvm.org/D19275





More information about the cfe-commits mailing list