SWDEV-314667 - Fix for crash

Change-Id: I1cfeadde975649fb1791cf354f7ba3f70db9d162


[ROCm/clr commit: a1562ec8f8]
This commit is contained in:
Sarbojit Sarkar
2022-02-18 11:14:31 +00:00
committed by Sarbojit Sarkar
parent 855eb801eb
commit 011c51888f
@@ -859,7 +859,7 @@ class hipGraphEventRecordNode : public hipGraphNode {
}
hip::Event* e = reinterpret_cast<hip::Event*>(event_);
commands_.reserve(1);
amd::Command* command;
amd::Command* command = nullptr;
status = e->recordCommand(command, queue);
commands_.emplace_back(command);
return status;