From 67658dd6e84ca0ee04cdfd761aa1a7f5ac96cd42 Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Tue, 15 Oct 2019 18:21:56 -0400
Subject: [PATCH] shader/node: std::move Meta instance within OperationNode
 constructor

Allows usages of the constructor to avoid an unnecessary copy.
---
 src/video_core/shader/node.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_core/shader/node.h b/src/video_core/shader/node.h
index 338bab17ca..447fb5c1d3 100644
--- a/src/video_core/shader/node.h
+++ b/src/video_core/shader/node.h
@@ -410,7 +410,7 @@ public:
     explicit OperationNode(OperationCode code) : OperationNode(code, Meta{}) {}
 
     explicit OperationNode(OperationCode code, Meta meta)
-        : OperationNode(code, meta, std::vector<Node>{}) {}
+        : OperationNode(code, std::move(meta), std::vector<Node>{}) {}
 
     explicit OperationNode(OperationCode code, std::vector<Node> operands)
         : OperationNode(code, Meta{}, std::move(operands)) {}
-- 
GitLab