summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader_ir.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-24 15:33:09 +0200
committerGitHub <noreply@github.com>2020-07-24 15:33:09 +0200
commitf650cf8a9a4f4976356e7e2eef404e81ccc0c8aa (patch)
treeacb35a74ffe2349a7ac0c605a4c43972142bfdb2 /src/video_core/shader/shader_ir.cpp
parentMerge pull request #4394 from lioncash/unused6 (diff)
parentvideo_core: Allow copy elision to take place where applicable (diff)
downloadyuzu-f650cf8a9a4f4976356e7e2eef404e81ccc0c8aa.tar
yuzu-f650cf8a9a4f4976356e7e2eef404e81ccc0c8aa.tar.gz
yuzu-f650cf8a9a4f4976356e7e2eef404e81ccc0c8aa.tar.bz2
yuzu-f650cf8a9a4f4976356e7e2eef404e81ccc0c8aa.tar.lz
yuzu-f650cf8a9a4f4976356e7e2eef404e81ccc0c8aa.tar.xz
yuzu-f650cf8a9a4f4976356e7e2eef404e81ccc0c8aa.tar.zst
yuzu-f650cf8a9a4f4976356e7e2eef404e81ccc0c8aa.zip
Diffstat (limited to 'src/video_core/shader/shader_ir.cpp')
-rw-r--r--src/video_core/shader/shader_ir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/shader_ir.cpp b/src/video_core/shader/shader_ir.cpp
index e322c3402..29d794b34 100644
--- a/src/video_core/shader/shader_ir.cpp
+++ b/src/video_core/shader/shader_ir.cpp
@@ -112,9 +112,9 @@ Node ShaderIR::GetOutputAttribute(Attribute::Index index, u64 element, Node buff
}
Node ShaderIR::GetInternalFlag(InternalFlag flag, bool negated) const {
- const Node node = MakeNode<InternalFlagNode>(flag);
+ Node node = MakeNode<InternalFlagNode>(flag);
if (negated) {
- return Operation(OperationCode::LogicalNegate, node);
+ return Operation(OperationCode::LogicalNegate, std::move(node));
}
return node;
}