Skip to content

Commit 0d55d28

Browse files
Joao SaffranJoao Saffran
authored andcommitted
improve comment, maybe
1 parent 591d12a commit 0d55d28

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/ObjectYAML/DXContainerYAML.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,12 +424,13 @@ void MappingContextTraits<DXContainerYAML::RootParameterLocationYaml,
424424
IO.mapRequired("ParameterType", L.Header.Type);
425425
IO.mapRequired("ShaderVisibility", L.Header.Visibility);
426426

427+
// If a parameter type is invalid, we don't have a body to parse.
427428
if (!dxbc::isValidParameterType(L.Header.Type))
428429
return;
430+
431+
// parses the body of a given root parameter type
429432
dxbc::RootParameterType PT =
430433
static_cast<dxbc::RootParameterType>(L.Header.Type);
431-
432-
// We allow ParameterType to be invalid here.
433434
switch (PT) {
434435
case dxbc::RootParameterType::Constants32Bit: {
435436
DXContainerYAML::RootConstantsYaml &Constants =

0 commit comments

Comments
 (0)