]> granicus.if.org Git - clang/commit
Block level expr should be visited. Otherwise variables in init expr of
authorZhongxing Xu <xuzhongxing@gmail.com>
Tue, 30 Jun 2009 12:11:58 +0000 (12:11 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Tue, 30 Jun 2009 12:11:58 +0000 (12:11 +0000)
commit1b54221f6865b0daae1b8eb8f84bf5d291e8b864
tree37719daf4fa931324eae1ac31cba9b09867a660c
parentedb883cabf32ef39a3f2ce7a7437894e176a740b
Block level expr should be visited. Otherwise variables in init expr of
DeclStmt would be dead before the DeclStmt.
For example:
int x = 0;
int y = x;
'x' would be dead before 'int y = x'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74522 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LiveVariables.cpp