Skip to content

Commit a1e38b5

Browse files
[SYCL][NFC] Remove default case in exhaustive switch (#9198)
This commit removes the default case for the switch in convertBackend to avoid a compilation error due to the switch being exhaustive. --------- Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
1 parent 9eeb782 commit a1e38b5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sycl/source/backend.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,9 @@ backend convertBackend(pi_platform_backend PiBackend) {
5757
return backend::ext_oneapi_hip;
5858
case PI_EXT_PLATFORM_BACKEND_ESIMD:
5959
return backend::ext_intel_esimd_emulator;
60-
default:
61-
throw sycl::runtime_error{"convertBackend: Unsupported backend",
62-
PI_ERROR_INVALID_OPERATION};
6360
}
61+
throw sycl::runtime_error{"convertBackend: Unsupported backend",
62+
PI_ERROR_INVALID_OPERATION};
6463
}
6564

6665
platform make_platform(pi_native_handle NativeHandle, backend Backend) {

0 commit comments

Comments
 (0)