https://github.com/zyn0217 requested changes to this pull request. It looks like T is assumed to be non-null for this function. Please do ensure the reasonableness of the patch if it's made by a static analyzer https://github.com/llvm/llvm-project/pull/104737