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(
324324    if  (IO.outputting ())
325325      Constants = std::get<DXContainerYAML::RootConstantsYaml>(P.Data );
326326    IO.mapRequired (" Constants" 
327-     P.Data  = Constants;
327+     if  (!IO.outputting ())
328+       P.Data  = Constants;
328329  } break ;
329330  case  llvm::to_underlying (dxbc::RootParameterType::CBV):
330331  case  llvm::to_underlying (dxbc::RootParameterType::SRV):
@@ -333,7 +334,8 @@ void MappingTraits<llvm::DXContainerYAML::RootParameterYamlDesc>::mapping(
333334    if  (IO.outputting ())
334335      Descriptor = std::get<DXContainerYAML::RootDescriptorYaml>(P.Data );
335336    IO.mapRequired (" Descriptor" 
336-     P.Data  = Descriptor;
337+     if  (!IO.outputting ())
338+       P.Data  = Descriptor;
337339  } break ;
338340  }
339341}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments