]> granicus.if.org Git - clang/commit
Suppress constant initializer checking when the declaration isn't valid.
authorEli Friedman <eli.friedman@gmail.com>
Fri, 20 Feb 2009 01:34:21 +0000 (01:34 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 20 Feb 2009 01:34:21 +0000 (01:34 +0000)
commitda153239bb6e69722fdd82914e729bb39f5821c5
treed9fdcb4a413111b5f505c94bb9c7f6e1d4076bc2
parent5e187a16f7d15f1d020798fb7e5242e28a8209ed
Suppress constant initializer checking when the declaration isn't valid.
This prevents emitting diagnostics which are almost certainly useless.

(Note that the test is checking that we emit only one diagnostic.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65101 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Sema/invalid-init-diag.c [new file with mode: 0644]