Parameter attributes are considered part of the function [1], and like
mismatched calling conventions [2], we can't have the verifier check for
mismatched parameter attributes.
Issues can be diagnosed with D103412.
[1] https://llvm.org/docs/LangRef.html#parameter-attributes
[2] https://llvm.org/docs/FAQ.html#why-does-instcombine-simplifycfg-turn-a-call-to-a-function-with-a-mismatched-calling-convention-into-unreachable-why-not-make-the-verifier-reject-it
I think this also applies to all the attributes above. I assume that doing this to every attribute check may require updating more tests, but I think it's the right thing to do in the long run. I can live with a FIXME comment for now, but I want the code to document that it's the ABI attributes on the call site that matter, not the callee.