Skip to content

Commit 781eb29

Browse files
authored
[NFC] [SYCL] Don't allocate local unused variables (#1726)
Signed-off-by: Sergey Kanaev <[email protected]>
1 parent 358ae27 commit 781eb29

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sycl/source/detail/scheduler/graph_builder.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -920,10 +920,7 @@ void Scheduler::GraphBuilder::removeRecordForMemObj(SYCLMemObjI *MemObject) {
920920
void Scheduler::GraphBuilder::connectDepEvent(Command *const Cmd,
921921
EventImplPtr DepEvent,
922922
const DepDesc &Dep) {
923-
const ContextImplPtr &Context = Cmd->getContext();
924-
const ContextImplPtr &DepEventContext = DepEvent->getContextImpl();
925-
926-
assert(Context != DepEventContext);
923+
assert(Cmd->getContext() != DepEvent->getContextImpl());
927924

928925
// construct Host Task type command manually and make it depend on DepEvent
929926
ExecCGCommand *ConnectCmd = nullptr;

0 commit comments

Comments
 (0)