diff --git a/sycl-jit/jit-compiler/lib/rtc/DeviceCompilation.cpp b/sycl-jit/jit-compiler/lib/rtc/DeviceCompilation.cpp index a89635b79ed46..910bfef64cd0f 100644 --- a/sycl-jit/jit-compiler/lib/rtc/DeviceCompilation.cpp +++ b/sycl-jit/jit-compiler/lib/rtc/DeviceCompilation.cpp @@ -402,8 +402,7 @@ Expected jit_compiler::performPostLink( ModuleDesc{std::unique_ptr{&Module}}, SPLIT_NONE, /*IROutputOnly=*/false, /*EmitOnlyKernelsAsEntryPoints=*/true); - bool SplitOccurred = Splitter->remainingSplits() > 1; - assert(!SplitOccurred); + assert(Splitter->remainingSplits() == 1); // TODO: Call `verifyNoCrossModuleDeviceGlobalUsage` if device globals shall // be processed.