SWDEV-498077 - Check topoOrder_ before accessing it.

Change-Id: I10e3c24ca8dc1009b8ac8ac27b3e9a6296f9a7ee
This commit is contained in:
Jaydeep Patel
2024-11-14 05:54:25 +00:00
کامیت شده توسط Rakesh Roy
والد 1a710dabcf
کامیت d997f78be4
@@ -838,7 +838,7 @@ hipError_t GraphExec::Run(hipStream_t graph_launch_stream) {
// If this is a repeat launch, make sure corresponding MemFreeNode exists for a MemAlloc node
if (repeatLaunch_ == true) {
if (topoOrder_[0]->GetParentGraph()->GetMemAllocNodeCount() > 0) {
if (!topoOrder_.empty() && topoOrder_[0]->GetParentGraph()->GetMemAllocNodeCount() > 0) {
return hipErrorInvalidValue;
}
} else {