Commit f6123a82 authored by guruhegde's avatar guruhegde

Add precondition - fn must have atleast one loop

parent 260b1324
......@@ -42,6 +42,9 @@ bool BatchProcess::run() {
return false;
auto LIt = LI->begin();
// If there is no loop, then do nothing.
if (LIt == LI->end())
return false;
Loop * L0 = *LIt; // XXX Split only first top level loop
splitLoop(L0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment