summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader_ir.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-07-21 06:29:23 +0200
committerLioncash <mathew1800@gmail.com>2020-07-21 06:36:13 +0200
commit6adc824d9d15b476320739788564023f995b9da0 (patch)
treebb5f4932c851a88e5a9e05ddceb4ebb26c11403b /src/video_core/shader/shader_ir.cpp
parentMerge pull request #4376 from ogniK5377/dark-wait-tree (diff)
downloadyuzu-6adc824d9d15b476320739788564023f995b9da0.tar
yuzu-6adc824d9d15b476320739788564023f995b9da0.tar.gz
yuzu-6adc824d9d15b476320739788564023f995b9da0.tar.bz2
yuzu-6adc824d9d15b476320739788564023f995b9da0.tar.lz
yuzu-6adc824d9d15b476320739788564023f995b9da0.tar.xz
yuzu-6adc824d9d15b476320739788564023f995b9da0.tar.zst
yuzu-6adc824d9d15b476320739788564023f995b9da0.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;
}