[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:
Schuyler Eldridge 2025-07-03 14:36:37 -04:00
parent 35d521e75c
commit c4ce58c90c
No known key found for this signature in database
GPG Key ID: 50C5E9936AAD536D
1 changed files with 0 additions and 2 deletions

View File

@ -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));