mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 17:05:31 +00:00
Use UNREACHABLE in more places
This commit is contained in:
committed by
Corentin Wallez
parent
96acaef95e
commit
8fca4a21b7
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user