llvm-project
1b9c3a2b - [Sema] Don't warn about fallthrough annotations after analyzer_noreturn calls (#242121)

Commit
4 days ago
[Sema] Don't warn about fallthrough annotations after analyzer_noreturn calls (#242121) -Wunreachable-code-fallthrough diagnosed a fallthrough annotation right after a call to an 'analyzer_noreturn' function as unreachable, even though the call can return. Make FallthroughMapper::fillReachableBlocks also add the unreachable successor of a block that ends in an 'analyzer_noreturn' call to the set of reachable blocks. That successor is the code immediately following the call. rdar://188741139
Author
Parents
Loading