Annotate function ID of functions that may be called via the internal dispatch.

Co-authored-by: Daniel <daniel@ekpyron.org>
This commit is contained in:
Rodrigo Q. Saramago
2023-03-20 20:14:41 +01:00
co-authored by Daniel
parent e7ec40b1af
commit a0e62bbd3d
11 changed files with 1631 additions and 27 deletions
@@ -2807,7 +2807,7 @@ void IRGeneratorForStatements::assignInternalFunctionIDIfNotCalledDirectly(
return;
define(IRVariable(_expression).part("functionIdentifier")) <<
to_string(m_context.internalFunctionID(_referencedFunction, false)) <<
to_string(*_referencedFunction.annotation().internalFunctionID) <<
"\n";
m_context.addToInternalDispatch(_referencedFunction);
}