Skip to content

Commit

Permalink
abi: Replace unimplemented with unreachable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezurko authored and xlauko committed Jan 22, 2024
1 parent 90df777 commit b1552b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/vast/ABI/Classify.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace vast::abi

static bool is_complex( mlir::Type t )
{
VAST_UNIMPLEMENTED;
VAST_UNREACHABLE("");
}

static bool is_record( mlir::Type t )
Expand Down Expand Up @@ -498,7 +498,7 @@ namespace vast::abi

case Class::SSEUp:
case Class::X87Up:
VAST_UNIMPLEMENTED;
VAST_UNREACHABLE("Wrong class");

case Class::Memory:
// TODO(abi): Inject type.
Expand All @@ -516,7 +516,7 @@ namespace vast::abi
return { target_type };
}
default:
VAST_UNIMPLEMENTED;
VAST_UNREACHABLE("Wrong class");
}
}

Expand All @@ -527,7 +527,7 @@ namespace vast::abi
{
case Class::Memory:
case Class::X87:
VAST_UNIMPLEMENTED;
VAST_UNREACHABLE("Wrong class");
case Class::ComplexX87:
case Class::NoClass:
return { std::monostate{} };
Expand All @@ -542,7 +542,7 @@ namespace vast::abi
case Class::SSE:
case Class::SSEUp:
case Class::X87Up:
VAST_UNIMPLEMENTED;
VAST_UNREACHABLE("Wrong class");
}
}

Expand Down

0 comments on commit b1552b8

Please sign in to comment.