[Flang] Use llvm_unreachable to replace assert, NFC
authorKai Luo <lkail@cn.ibm.com>
Tue, 4 Jul 2023 07:04:34 +0000 (15:04 +0800)
committerKai Luo <lkail@cn.ibm.com>
Tue, 4 Jul 2023 07:05:37 +0000 (15:05 +0800)
commitfb09f9f914117e9740df6c637d98670955ea52dc
tree04b8b6c168d8e64e183cec4408a1dd630872eb8d
parent8b8e62d3f6807e8dadd9aef93ea64663f7ec805c
[Flang] Use llvm_unreachable to replace assert, NFC

IIUC, the `default` case should be unreachable inferred from the context.

Reviewed By: kkwli0

Differential Revision: https://reviews.llvm.org/D154344
flang/lib/Optimizer/Builder/PPCIntrinsicCall.cpp