[Sema] Fix -Wuninitialized for struct assignment from GNU C statement expression
authorNathan Huckleberry <nhuck@google.com>
Fri, 26 Jul 2019 17:29:35 +0000 (17:29 +0000)
committerNathan Huckleberry <nhuck@google.com>
Fri, 26 Jul 2019 17:29:35 +0000 (17:29 +0000)
commit2e040398f8d691cc378c1abb098824ff49f3f28f
treefc471cad581f4792b88c78feac0ec9eed62e7587
parent9df6177d380ecd0e9d78361a938664dc3a0ee387
[Sema] Fix -Wuninitialized for struct assignment from GNU C statement expression

Summary:
Do not automatically report self references of structs in statement expression
as warnings. Instead wait for uninitialized cfg analysis.
https://bugs.llvm.org/show_bug.cgi?id=42604

Reviewers: aaron.ballman, rsmith, nickdesaulniers

Reviewed By: aaron.ballman, nickdesaulniers

Subscribers: nathanchance, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D64678

llvm-svn: 367134
clang/lib/Sema/SemaDecl.cpp
clang/test/Sema/warn-uninitialized-statement-expression.c [new file with mode: 0644]