script_opt: Use Func::GetName()

This commit is contained in:
Arne Welzel 2024-09-27 12:52:32 +02:00
parent 89127722ea
commit 71e9c8d436
16 changed files with 49 additions and 48 deletions

View file

@ -573,7 +573,7 @@ bool IsZAM_BuiltIn(ZAMCompiler* zam, const Expr* e) {
if ( ! func )
return false;
std::string fn = func->Name();
auto fn = func->GetName();
// It's useful to intercept any lingering calls to the script-level
// Log::write as well as the Log::__write BiF. When inlining there can
@ -619,7 +619,7 @@ bool IsZAM_BuiltInCond(ZAMCompiler* zam, const CallExpr* c, int& branch_v) {
if ( ! func )
return false;
auto b = builtins.find(func->Name());
auto b = builtins.find(func->GetName());
if ( b == builtins.end() )
return false;