This is an archive of the discontinued LLVM Phabricator instance.

[clang] Do not crash on template specialization following a fatal error
ClosedPublic

Authored by adamcz on Apr 16 2021, 11:38 AM.

Details

Summary

There was a missing isInvalid() check leading to an attempt to
instantiate template with an empty instantiation stack.

Diff Detail

Event Timeline

adamcz requested review of this revision.Apr 16 2021, 11:38 AM
adamcz created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptApr 16 2021, 11:38 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
adamcz updated this revision to Diff 338497.Apr 19 2021, 5:48 AM

minor changes to test

sammccall accepted this revision.Apr 22 2021, 10:01 AM
This revision is now accepted and ready to land.Apr 22 2021, 10:01 AM