This is an archive of the discontinued LLVM Phabricator instance.

[AST] fail rather than crash when const evaluating invalid c++ foreach
ClosedPublic

Authored by sammccall on Oct 27 2021, 9:50 AM.

Diff Detail

Event Timeline

sammccall requested review of this revision.Oct 27 2021, 9:50 AM
sammccall created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2021, 9:50 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hokein accepted this revision.Oct 27 2021, 11:52 AM
hokein added inline comments.
clang/test/SemaCXX/constexpr-function-recovery-crash.cpp
73

this can be simplified further.

struct X {} array[] = {undef()};

This revision is now accepted and ready to land.Oct 27 2021, 11:52 AM
This revision was automatically updated to reflect the committed changes.
sammccall marked an inline comment as done.