Add function to FunctionReturnLabelSlot and assert that functions are identical in comparison operators.

This commit is contained in:
Daniel Kirchner
2021-08-16 17:34:00 +02:00
parent 9f46fff467
commit 6037c4f26c
3 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ public:
m_stream << joinHumanReadable(_info.returnVariables | ranges::views::transform(variableSlotToString));
}
m_stream << "\\l\\\n";
Stack functionEntryStack = {FunctionReturnLabelSlot{}};
Stack functionEntryStack = {FunctionReturnLabelSlot{_info.function}};
functionEntryStack += _info.parameters | ranges::views::reverse;
m_stream << stackToString(functionEntryStack) << "\"];\n";
m_stream << "FunctionEntry_" << _info.function.name.str() << " -> Block" << getBlockId(*_info.entry) << ";\n";