This is an archive of the discontinued LLVM Phabricator instance.

[clang] Check for nullptr when instantiating late attrs
ClosedPublic

Authored by adamcz on Jan 18 2021, 2:19 PM.

Details

Summary

This was already done in SemaTemplateInstantiateDecl.cpp, but not in
SemaTemplateInstantiate.cpp.

Anecdotally I've seen some clangd crashes where coredumps point to this
being a problem, but I cannot reproduce this so far.

Diff Detail

Event Timeline

adamcz created this revision.Jan 18 2021, 2:19 PM
adamcz requested review of this revision.Jan 18 2021, 2:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 18 2021, 2:19 PM
hokein accepted this revision.Jan 18 2021, 3:19 PM

this looks reasonable to me, thanks for tracking it down!

This revision is now accepted and ready to land.Jan 18 2021, 3:19 PM
This revision was automatically updated to reflect the committed changes.