From 8e77e3e92cc7fd8a18ab6d1caa700d23baf87cc1 Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Thu, 18 Nov 2021 08:56:24 -0800 Subject: [PATCH] efficiency fix - return a reference rather than a copy of a map --- src/script_opt/CPP/Compile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script_opt/CPP/Compile.h b/src/script_opt/CPP/Compile.h index 7974c9206a..16f9312b89 100644 --- a/src/script_opt/CPP/Compile.h +++ b/src/script_opt/CPP/Compile.h @@ -186,7 +186,7 @@ public: // Returns a mapping of from Attr objects to their associated // initialization information. The Attr must have previously // been registered. - auto ProcessedAttr() { return processed_attr; } + auto& ProcessedAttr() { return processed_attr; } // True if the given expression is simple enough that we can // generate code to evaluate it directly, and don't need to