From e3ebc32032b61be20e23702a7571d5f999080843 Mon Sep 17 00:00:00 2001 From: baggins183 Date: Sun, 6 Oct 2024 08:48:49 -0700 Subject: [PATCH] Update src/shader_recompiler/ir/value.cpp Co-authored-by: TheTurtle <47210458+raphaelthegreat@users.noreply.github.com> --- src/shader_recompiler/ir/value.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shader_recompiler/ir/value.cpp b/src/shader_recompiler/ir/value.cpp index 562d06989..cf7a70f76 100644 --- a/src/shader_recompiler/ir/value.cpp +++ b/src/shader_recompiler/ir/value.cpp @@ -73,7 +73,7 @@ bool Value::operator==(const Value& other) const { case Type::F64: return imm_u64 == other.imm_u64; case Type::StringLiteral: - return std::string(string_literal) == other.string_literal; + return std::string_view(string_literal) == other.string_literal; case Type::U32x2: case Type::U32x3: case Type::U32x4: