Otherwise we will fail to generate the definition of a defaulted destructor,
if the only reference was in a templated temporary.
rdar://89366678
Differential D120426
[Sema] Mark the referenced destructor during transformation of a `CXXBindTemporaryExpr` Authored by akyrtzi on Feb 23 2022, 12:06 PM.
Details Otherwise we will fail to generate the definition of a defaulted destructor, rdar://89366678
Diff Detail
Event TimelineComment Actions Make sure to check the destructor decl pointer for nil before passing to Sema::MarkFunctionReferenced() |