]> granicus.if.org Git - clang/commit
Move duplicate uninitialized warning suppression into the
authorChandler Carruth <chandlerc@gmail.com>
Fri, 22 Jul 2011 05:27:52 +0000 (05:27 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 22 Jul 2011 05:27:52 +0000 (05:27 +0000)
commitd837c0dc361a000b951593eaaa80c46b73d15b1d
treeffc7bdba6c1a388c41ac76f918663173ffa12f7d
parentba3dd902d1cde09776a50c1adf2cd40bf0a15a7f
Move duplicate uninitialized warning suppression into the
AnalysisBasedWarnings Sema layer and out of the Analysis library itself.
This returns the uninitialized values analysis to a more pure form,
allowing its original logic to correctly detect some categories of
definitely uninitialized values. Fixes PR10358 (again).

Thanks to Ted for reviewing and updating this patch after his rewrite of
several portions of this analysis.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135748 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/UninitializedValues.cpp
lib/Sema/AnalysisBasedWarnings.cpp
test/Sema/uninit-variables.c