]> granicus.if.org Git - clang/commit
Revert r135217, which wasn't the correct fix for PR10358. With this
authorChandler Carruth <chandlerc@gmail.com>
Sat, 16 Jul 2011 22:27:02 +0000 (22:27 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 16 Jul 2011 22:27:02 +0000 (22:27 +0000)
commit8435069798b5621615f9f65c471c7e7808316b20
tree7ce0e2eb5f8f73ed043956cd0cb30cb1f92ca588
parenta6c2b3a648913d47703625acb17671dd2d926bbc
Revert r135217, which wasn't the correct fix for PR10358. With this
patch, we actually move the state-machine for the value set backwards
one step. This can pretty easily lead to infinite loops where we
continually try to propagate a bit, succeed for one iteration, but then
back up because we find an uninitialized use.

A reduced test case from PR10379 is included.

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