nvptm wrote: Created an alternate [PR](https://github.com/llvm/llvm-project/pull/190079) that uses [VariableInfo](https://github.com/llvm/llvm-project/pull/186368) to check for optional arguments. Closing. https://github.com/llvm/llvm-project/pull/185764