ControlFlow do not add duplicate merge points on the top of the stack

This commit is contained in:
Jake Turner
2025-04-04 07:17:55 +01:00
parent 8eba23875e
commit 59454dbecc
+3 -1
View File
@@ -71,7 +71,9 @@ public:
}
void AddMergePoint(ExecutionPoint execPoint)
{
m_MergePoints.push_back(execPoint);
// only add a new merge point
if(execPoint != m_MergePoints.back())
m_MergePoints.push_back(execPoint);
m_StateChanged = true;
}
void AddFunctionReturnPoint(ExecutionPoint execPoint)