]> granicus.if.org Git - llvm/commit
[InstSimplify] Remove unreachable default from SimplifyBinOp.
authorCraig Topper <craig.topper@gmail.com>
Thu, 6 Apr 2017 18:59:08 +0000 (18:59 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 6 Apr 2017 18:59:08 +0000 (18:59 +0000)
commitf8e400cffa8bed8dfc01aba1e9e1ad3505ee5d4e
treee94794b932935d97150b40aa870122218ffc2cff
parent3d88b146f6a2a42d4a163883a0840c204919176f
[InstSimplify] Remove unreachable default from SimplifyBinOp.

We have dedicated handlers for every opcode so nothing can get here anymore. The switch doesn't get detected as fully covered because Opcode is an unsigned. Casting to Instruction::BinaryOps still doesn't detect it because BinaryOpsEnd is in the enum and 1 past the last opcode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299687 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp