Skip to content

Commit 39cc2b4

Browse files
pszymichigcbot
authored andcommitted
Moved destroyDummyFunc() back to ~ScalarizeFunction()
due to functional regression
1 parent c1614f2 commit 39cc2b4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

IGC/Compiler/Optimizer/Scalarizer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ ScalarizeFunction::~ScalarizeFunction()
8888
{
8989
releaseAllSCMEntries();
9090
delete[] m_SCMAllocationArray;
91+
destroyDummyFunc();
9192
V_PRINT(scalarizer, "ScalarizeFunction destructor\n");
9293
}
9394

@@ -171,8 +172,6 @@ bool ScalarizeFunction::runOnFunction(Function& F)
171172
(*index)->eraseFromParent();
172173
}
173174

174-
destroyDummyFunc();
175-
176175
V_PRINT(scalarizer, "\nCompleted scalarizing function: " << m_currFunc->getName() << "\n");
177176
return true;
178177
}

0 commit comments

Comments
 (0)