]> granicus.if.org Git - clang/commit
Fix EmitCaseStmtRange to ignore empty ranges
authorDaniel Dunbar <daniel@zuster.org>
Thu, 24 Jul 2008 01:18:41 +0000 (01:18 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 24 Jul 2008 01:18:41 +0000 (01:18 +0000)
commit4efde8d2c10b091bc9588de18c2c71dca2979e49
treebb90fddaa32d28bc6682416b7e9fb0db40efc7e3
parentcd8f646eca128f52a7bce0103c51ff82ce96f374
Fix EmitCaseStmtRange to ignore empty ranges
 - Also cleaned up emission slightly
 - Inspection of the code revealed several other bugs, however. Case
   ranges are not properly wired and can result in switch cases being
   dropped or even infinite loops. See: <rdar://problem/6098585>

Completes: <rdar://problem/6094119>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53975 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmt.cpp