From 5114d6bd82aa416163d4954775c18a0083102272 Mon Sep 17 00:00:00 2001 From: Sergey Kanaev Date: Wed, 20 May 2020 17:07:55 +0300 Subject: [PATCH] [NFC] [SYCL] Don't allocate local unused variables Signed-off-by: Sergey Kanaev --- sycl/source/detail/scheduler/graph_builder.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sycl/source/detail/scheduler/graph_builder.cpp b/sycl/source/detail/scheduler/graph_builder.cpp index 684c9069f3ce1..7bd3a346c096d 100644 --- a/sycl/source/detail/scheduler/graph_builder.cpp +++ b/sycl/source/detail/scheduler/graph_builder.cpp @@ -920,10 +920,7 @@ void Scheduler::GraphBuilder::removeRecordForMemObj(SYCLMemObjI *MemObject) { void Scheduler::GraphBuilder::connectDepEvent(Command *const Cmd, EventImplPtr DepEvent, const DepDesc &Dep) { - const ContextImplPtr &Context = Cmd->getContext(); - const ContextImplPtr &DepEventContext = DepEvent->getContextImpl(); - - assert(Context != DepEventContext); + assert(Cmd->getContext() != DepEvent->getContextImpl()); // construct Host Task type command manually and make it depend on DepEvent ExecCGCommand *ConnectCmd = nullptr;