[llvm] r305144 - Added llvm_unreachable to address warning: this statement may fall through. NFC.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 10 02:03:09 PDT 2017


On Sat, Jun 10, 2017 at 1:04 AM, Galina Kistanova via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: gkistanova
> Date: Sat Jun 10 03:04:51 2017
> New Revision: 305144
>
> URL: http://llvm.org/viewvc/llvm-project?rev=305144&view=rev
> Log:
> Added llvm_unreachable to address warning: this statement may fall through. NFC.
>

Are you really sure `llvm_unreachable()` is the right choice here?
It seems a break would do it.

-- 
Davide

"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare


More information about the llvm-commits mailing list