From 79437026189c7119622bbd4b5fe492546eb5fa08 Mon Sep 17 00:00:00 2001 From: Joel Linn Date: Mon, 28 Dec 2020 19:53:49 +0100 Subject: [PATCH] Fix rvalue being passed as a reference. --- src/xenia/gpu/shader_compiler_main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/gpu/shader_compiler_main.cc b/src/xenia/gpu/shader_compiler_main.cc index 4874928d3..be68cc089 100644 --- a/src/xenia/gpu/shader_compiler_main.cc +++ b/src/xenia/gpu/shader_compiler_main.cc @@ -105,7 +105,8 @@ int shader_compiler_main(const std::vector& args) { auto shader = std::make_unique( shader_type, ucode_data_hash, ucode_dwords.data(), ucode_dwords.size()); - shader->AnalyzeUcode(StringBuffer()); + StringBuffer buffer; + shader->AnalyzeUcode(buffer); std::unique_ptr translator; if (cvars::shader_output_type == "spirv" ||