]> granicus.if.org Git - clang/commit
Add workaround for Sema issue found in <rdar://problem/9188004>, which leads to an...
authorTed Kremenek <kremenek@apple.com>
Tue, 29 Mar 2011 01:40:00 +0000 (01:40 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 29 Mar 2011 01:40:00 +0000 (01:40 +0000)
commitb831c673621c5587642343cace9def134916a17b
tree75b481fd7ceedcdb0fe1a59fabfb41d082bf1666
parent170a6a229b6cb0c411be5edaa587a1b1436bd147
Add workaround for Sema issue found in <rdar://problem/9188004>, which leads to an assertion failure in the uninitialized variables analysis.  The problem is that Sema isn't properly registering a variable in a DeclContext (which -Wuninitialized relies on), but
my expertise on the template instantiation logic isn't good enough to fix this problem for real.  This patch worksaround the
problem in -Wuninitialized, but we should fix it for real later.

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