diff --git a/impeller/renderer/backend/vulkan/yuv_conversion_vk.cc b/impeller/renderer/backend/vulkan/yuv_conversion_vk.cc index 2d5ebabb7f9d9..433e243643238 100644 --- a/impeller/renderer/backend/vulkan/yuv_conversion_vk.cc +++ b/impeller/renderer/backend/vulkan/yuv_conversion_vk.cc @@ -100,7 +100,7 @@ bool YUVConversionDescriptorVKEqual::operator()( ImmutableSamplerKey::ImmutableSamplerKey(const SamplerVK& sampler) : sampler(sampler.GetDescriptor()) { - if (auto conversion = sampler.GetYUVConversion()) { + if (const auto& conversion = sampler.GetYUVConversion()) { yuv_conversion = conversion->GetDescriptor(); } }