Apply this hack patch to a throw-away branch to help you find and fix multiclass template arguments that are of the wrong type. Such arguments have been discovered in the AMDGPU, ARM, MSP430, RISCV, WebAssembly, and X86 targets. The problem may exist in others, also.
See this conversation: https://lists.llvm.org/pipermail/llvm-dev/2021-February/148261.html
Invert and reduce indentation?