]> granicus.if.org Git - clang/commit
If the 'while' has an empty body, set the body to the continue target block.
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 20 Aug 2009 03:21:49 +0000 (03:21 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 20 Aug 2009 03:21:49 +0000 (03:21 +0000)
commitd5c3b1339e842619fc3ae79482424f901aeb89f3
tree1168d6328830f1e3b50d78a31dcf0fc9d0d244ac
parent1d4b218fa55239f2a7350f48be14090d2753c22c
If the 'while' has an empty body, set the body to the continue target block.
Although this does not make the CFG more correct, it makes the CFG more
beautiful without multiple roots.

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