]> granicus.if.org Git - clang/commit
Don't warn about unreachable code if the block starts with __builtin_unreachable().
authorJordy Rose <jediknil@belkadan.com>
Tue, 27 Jul 2010 03:39:53 +0000 (03:39 +0000)
committerJordy Rose <jediknil@belkadan.com>
Tue, 27 Jul 2010 03:39:53 +0000 (03:39 +0000)
commit5e04bdde8e74d991feffe9cf95d731f7e473dbb7
tree5be5d97ae63f9d16690e687c80a0a87617b52414
parent94e3d1f0349634235606be77c08b3a48a6d563d6
Don't warn about unreachable code if the block starts with __builtin_unreachable().

The next step is to warn if a block labeled unreachable is, in fact, reachable. Somewhat related to PR810.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109487 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Checker/UnreachableCodeChecker.cpp
test/Analysis/unreachable-code-path.c