This is an archive of the discontinued LLVM Phabricator instance.

[clang] Make clear Sema::CheckForConstantInitializer is for C-only codepath.
AbandonedPublic

Authored by hokein on Jul 17 2020, 8:17 AM.

Details

Summary

Diff Detail

Event Timeline

hokein created this revision.Jul 17 2020, 8:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2020, 8:17 AM
hokein marked an inline comment as done.Jul 17 2020, 8:20 AM
hokein added inline comments.
hokein planned changes to this revision.Jul 17 2020, 10:55 AM
hokein marked an inline comment as done.
hokein added inline comments.
clang/test/SemaCXX/compound-literal.cpp
92

hmm, clang will crash at CodeGen again if we turn off the -Wuninitialized warning.

hokein abandoned this revision.Jul 20 2020, 2:42 AM
hokein marked an inline comment as done.
hokein added inline comments.
clang/lib/Sema/SemaDecl.cpp
11072

actually, I think the code is correct, the above comment is not up-to-date, so we just need to update the comment, see D84145.