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;