From f5a2de0686abaedab912e9bc109151ef8cc83fb2 Mon Sep 17 00:00:00 2001 From: Lukas Hermanns Date: Mon, 21 Sep 2020 16:17:38 -0400 Subject: [PATCH] Use const-ref to iterate over TMap entries to fix compiler error with clang 10 (Merged from CL 14359172). #rb Brandon.Schaefer #fyi Michael.Sartain #jira none #rnx [CL 14359227 by Lukas Hermanns in ue5-main branch] --- .../Source/Runtime/RenderCore/Private/RenderGraphValidation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/Source/Runtime/RenderCore/Private/RenderGraphValidation.cpp b/Engine/Source/Runtime/RenderCore/Private/RenderGraphValidation.cpp index 0deb42f26c4c..b6a4b454a83f 100644 --- a/Engine/Source/Runtime/RenderCore/Private/RenderGraphValidation.cpp +++ b/Engine/Source/Runtime/RenderCore/Private/RenderGraphValidation.cpp @@ -716,7 +716,7 @@ void FRDGBarrierValidation::ValidateBarrierBatchBegin(const FRDGBarrierBatchBegi } }; - for (const auto Pair : ResourceMap.Textures) + for (const auto& Pair : ResourceMap.Textures) { FRDGTextureRef Texture = Pair.Key;