File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -214,15 +214,14 @@ event handler::finalize() {
214
214
if (!CommandGroup) {
215
215
if (getType () != detail::CG::NONE)
216
216
throw sycl::runtime_error (
217
- " Internal Error. Command group cannot be constructed." ,
218
- PI_INVALID_OPERATION);
217
+ " Internal Error. Command group cannot be constructed." ,
218
+ PI_INVALID_OPERATION);
219
219
else
220
220
// empty cg is supported by sycl2020
221
221
Event = std::make_shared<cl::sycl::detail::event_impl>();
222
- }
223
- else
224
- Event = detail::Scheduler::getInstance ().addCG (
225
- std::move (CommandGroup), std::move (MQueue));
222
+ } else
223
+ Event = detail::Scheduler::getInstance ().addCG (std::move (CommandGroup),
224
+ std::move (MQueue));
226
225
227
226
MLastEvent = detail::createSyclObjFromImpl<event>(Event);
228
227
return MLastEvent;
You can’t perform that action at this time.
0 commit comments