jfb added a comment. @t.p.northover: would an acceptable solution be to add a new trait such as `CGM.getCXXABI().CanCallMismatchedFunctionType()` or something of the sort? ARM would set it to true, wasm to false. http://reviews.llvm.org/D19275