Clang won't emit any prologues for such functions, so it would assert trying to codegen the parameter references.
This patch makes Clang check the extended asm inputs and outputs for references to function parameters.
It is probably still possible to shoot oneself in the foot since other arbitrary expressions are allowed there :/