This patch uses castAs instead of getAs which will assert if the type doesn't match to resolve dereference issue with nullptr FPT when calling getThisType() in clang::CodeGen::CGDebugInfo::CreateType(clang::MemberPointerType const *, llvm::DIFile *).
Details
Details
Diff Detail
Diff Detail
Event Timeline
Manna retitled this revision from [NFC][CLANG] Fix Static Code Analyzer Concern with nullptr dereference issue to [NFC][CLANG] Fix Static Code Analyzer Concerns.Jun 1 2023, 4:13 PM
This revision is now accepted and ready to land.Jun 2 2023, 5:59 AM
Closed by commit rGc7550310738b: [NFC][CLANG] Fix Static Code Analyzer Concerns (authored by Manna). · Explain WhyJun 4 2023, 9:11 AM
This revision was automatically updated to reflect the committed changes.