File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,8 @@ void MappingTraits<llvm::DXContainerYAML::RootParameterYamlDesc>::mapping(
324
324
if (IO.outputting ())
325
325
Constants = std::get<DXContainerYAML::RootConstantsYaml>(P.Data );
326
326
IO.mapRequired (" Constants" , Constants);
327
- P.Data = Constants;
327
+ if (!IO.outputting ())
328
+ P.Data = Constants;
328
329
} break ;
329
330
case llvm::to_underlying (dxbc::RootParameterType::CBV):
330
331
case llvm::to_underlying (dxbc::RootParameterType::SRV):
@@ -333,7 +334,8 @@ void MappingTraits<llvm::DXContainerYAML::RootParameterYamlDesc>::mapping(
333
334
if (IO.outputting ())
334
335
Descriptor = std::get<DXContainerYAML::RootDescriptorYaml>(P.Data );
335
336
IO.mapRequired (" Descriptor" , Descriptor);
336
- P.Data = Descriptor;
337
+ if (!IO.outputting ())
338
+ P.Data = Descriptor;
337
339
} break ;
338
340
}
339
341
}
You can’t perform that action at this time.
0 commit comments