Skip to content

Commit 94ded1d

Browse files
authored
Merge pull request #4 from slangbot/format-5525-aleino/nullptr-deref
Format code for PR shader-slang#5525
2 parents 24aec7f + 90b8760 commit 94ded1d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/slang/slang-legalize-types.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,11 @@ struct TupleTypeBuilder
488488

489489
// TODO: shallow clone of modifiers, etc.
490490
IRStructField* originalField = findStructField(originalStructType, ee.fieldKey);
491-
IRStructField* newField = builder->createStructField(ordinaryStructType, ee.fieldKey, fieldType);
492-
// In case the original struct had offset decorations attached, transfer those as well.
493-
// The original offsets should still be valid, since we only skip fields of types that aren't
494-
// representable in memory.
491+
IRStructField* newField =
492+
builder->createStructField(ordinaryStructType, ee.fieldKey, fieldType);
493+
// In case the original struct had offset decorations attached, transfer those as
494+
// well. The original offsets should still be valid, since we only skip fields of
495+
// types that aren't representable in memory.
495496
originalField->transferDecorationsTo(newField);
496497
}
497498

0 commit comments

Comments
 (0)