Update src/shader_recompiler/ir/value.cpp

Co-authored-by: TheTurtle <47210458+raphaelthegreat@users.noreply.github.com>
This commit is contained in:
baggins183 2024-10-06 08:48:49 -07:00 committed by GitHub
parent 7b1aae07ee
commit e3ebc32032
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: