From 03085d45e5dab9b881de5101f029c33a51f379d4 Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Sun, 10 Jan 2021 17:36:03 -0800 Subject: [PATCH] simplified some vestigial complexity I noticed when flipping through diffs --- src/script_opt/Reduce.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/script_opt/Reduce.cc b/src/script_opt/Reduce.cc index 91518bba97..5e7adb7e41 100644 --- a/src/script_opt/Reduce.cc +++ b/src/script_opt/Reduce.cc @@ -113,11 +113,7 @@ NameExprPtr Reducer::PushInlineBlock(TypePtr type) if ( ! type || type->Tag() == TYPE_VOID ) return nullptr; - char buf[8192]; - int n = new_locals.size(); - snprintf(buf, sizeof buf, "@retvar"); - - IDPtr ret_id = install_ID(buf, "", false, false); + IDPtr ret_id = install_ID("@retvar", "", false, false); ret_id->SetType(type); // Track this as a new local *if* we're in the outermost inlining