Skip to content

Commit b03ee45

Browse files
PawelJurekigcbot
authored andcommitted
Revert " Move destroyDummyFunc() back to ~ScalarizeFunction()"
Revert " Move destroyDummyFunc() back to ~ScalarizeFunction()"
1 parent 9c951bd commit b03ee45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

IGC/Compiler/Optimizer/Scalarizer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ ScalarizeFunction::~ScalarizeFunction()
7272
{
7373
releaseAllSCMEntries();
7474
delete[] m_SCMAllocationArray;
75-
destroyDummyFunc();
7675
V_PRINT(scalarizer, "ScalarizeFunction destructor\n");
7776
}
7877

@@ -156,6 +155,8 @@ bool ScalarizeFunction::runOnFunction(Function& F)
156155
(*index)->eraseFromParent();
157156
}
158157

158+
destroyDummyFunc();
159+
159160
V_PRINT(scalarizer, "\nCompleted scalarizing function: " << m_currFunc->getName() << "\n");
160161
return true;
161162
}

0 commit comments

Comments
 (0)