From 6a52940e22586d4fb7f3a4c2d1caf8bc8ec02f83 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Mon, 18 Dec 2023 10:28:15 -0800 Subject: [PATCH] remove extra var redecl --- lib/HLSL/DxilValidation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/HLSL/DxilValidation.cpp b/lib/HLSL/DxilValidation.cpp index 8aafdfaa5c..39c77c9d9c 100644 --- a/lib/HLSL/DxilValidation.cpp +++ b/lib/HLSL/DxilValidation.cpp @@ -2163,7 +2163,7 @@ static void ValidateDxilOperationCallInProfile(CallInst *CI, if (ValCtx.DxilMod.HasDxilFunctionProps(F)) { DxilModule &DM = ValCtx.DxilMod; DxilEntryProps &entryProps = DM.GetDxilEntryProps(F); - DXIL::NodeLaunchType nodeLaunchType = entryProps.props.Node.LaunchType; + nodeLaunchType = entryProps.props.Node.LaunchType; shaderKind = ValCtx.DxilMod.GetDxilFunctionProps(F).shaderKind; } else if (ValCtx.DxilMod.IsPatchConstantShader(F)) shaderKind = DXIL::ShaderKind::Hull;