mirror of https://github.com/llvm/circt.git
[HW] Remove defensive, unnecessary default
Remove some defensive coding that added a default case to a fully covered switch statement. This is a compile time warning if not removed. Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
This commit is contained in:
parent
35d521e75c
commit
c4ce58c90c
|
@ -143,8 +143,6 @@ void hwModuleTypeGetPort(MlirType type, intptr_t index, HWModulePort *ret) {
|
|||
case ModulePort::Direction::InOut:
|
||||
dir = HWModulePortDirection::InOut;
|
||||
break;
|
||||
default:
|
||||
llvm_unreachable("unknown ModulePort::Direction");
|
||||
}
|
||||
|
||||
ret->name = wrap(static_cast<Attribute>(port.name));
|
||||
|
|
Loading…
Reference in New Issue