[clang] [Clang] [NFC] Prevent null pointer dereference in Sema::InstantiateFunctionDefinition (PR #89801)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 23 11:28:53 PDT 2024
https://github.com/Sirraide commented:
A pr that just adds assertions and nothing else seems like a very weird thing to do. Moreover, a few lines above in the same function, we return if this isn’t a copy/move ctor/assignment operator, which always has at least one parameter; I don’t think it is possible for `Parm` to be `nullptr` here. Do you have any code examples that would trigger this asertion here?
https://github.com/llvm/llvm-project/pull/89801
More information about the cfe-commits
mailing list