efficiency fix - return a reference rather than a copy of a map

This commit is contained in:
Vern Paxson 2021-11-18 08:56:24 -08:00
parent 55b2ce7dbc
commit 8e77e3e92c

View file

@ -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