Use UNREACHABLE in more places

This commit is contained in:
Corentin Wallez
2017-07-10 21:48:12 -04:00
committed by Corentin Wallez
parent 96acaef95e
commit 8fca4a21b7
7 changed files with 8 additions and 13 deletions

View File

@@ -32,8 +32,7 @@ namespace {
case VulkanBackend:
return utils::BackendType::Vulkan;
default:
NXT_ASSERT(false);
return utils::BackendType::Null;
UNREACHABLE();
}
}
@@ -48,8 +47,7 @@ namespace {
case VulkanBackend:
return "Vulkan";
default:
NXT_ASSERT(false);
return "";
UNREACHABLE();
}
}