https://github.com/Sirraide approved this pull request. LGTM Looks like we’re doing this null check pretty much in every other place `SubstType` is used, so this makes sense. https://github.com/llvm/llvm-project/pull/97910