commit | b6f7b72047b3fd3f96a5040e1e4d520a9dea01cd | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Thu Aug 30 18:13:31 2007 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Thu Aug 30 18:13:31 2007 +0000 |
tree | 680d52a117ac88c818273024e388c2e6cda467ce | |
parent | c9406125e2cac9208098655ac8058c095c2c3a65 [diff] |
Fixed bug where the CFG would fail to build when an 'if' statement had an empty then or else block (or contained only ';' statements). For example, we now handle the following: int empty_else() { if (0) { int a; } else ; } int empty_then() { if (0) ; else { int a; } } Thanks to Nico Weber for spotting this problem. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41617 91177308-0d34-0410-b5e6-96231b3b80d8