From 9bd3231d9be2f5d1b8d2f6b3347eefdfe6af3c70 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 16 May 2018 20:50:18 +1000 Subject: [PATCH] Avoid needless constant allocation in StaticRegister::set --- src/register_manager.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/register_manager.hh b/src/register_manager.hh index a2a1e253..4337f257 100644 --- a/src/register_manager.hh +++ b/src/register_manager.hh @@ -29,7 +29,7 @@ class StaticRegister : public Register public: void set(Context&, ConstArrayView values) override { - m_content = Vector(values.begin(), values.end()); + m_content.assign(values.begin(), values.end()); } ConstArrayView get(const Context&) override