File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,8 @@ struct IRInst
597
597
template <typename T>
598
598
T* getNextChildOfType (IRInst* child = nullptr )
599
599
{
600
- for (IRInst* cc = child ? child->getNextInst () : getFirstDecorationOrChild (); cc != nullptr ; cc = cc->getNextInst ())
600
+ for (IRInst* cc = child ? child->getNextInst () : getFirstDecorationOrChild (); cc != nullptr ;
601
+ cc = cc->getNextInst ())
601
602
{
602
603
if (T* cct = as<T>(cc))
603
604
return cct;
@@ -792,10 +793,11 @@ struct IRInst
792
793
void removeOperand (Index index);
793
794
794
795
// / Transfer any decorations of this instruction to the `target` instruction.
795
- // TODO: rewrite as transferDecorationsTo(target) -> transferChildrenOfTypeTo<IRDecoration>(target)
796
+ // TODO: rewrite as transferDecorationsTo(target) ->
797
+ // transferChildrenOfTypeTo<IRDecoration>(target)
796
798
void transferDecorationsTo (IRInst* target);
797
799
798
- template <typename T>
800
+ template <typename T>
799
801
void transferChildrenOfTypeTo (IRInst* target)
800
802
{
801
803
for (T* cc = getNextChildOfType<T>(); cc != nullptr ; cc = getNextChildOfType<T>(cc))
Original file line number Diff line number Diff line change @@ -488,9 +488,11 @@ struct TupleTypeBuilder
488
488
489
489
// TODO: shallow clone of modifiers, etc.
490
490
IRStructField* originalField = findStructField (originalStructType, ee.fieldKey );
491
- IRStructField* newField = builder->createStructField (ordinaryStructType, ee.fieldKey , fieldType);
491
+ IRStructField* newField =
492
+ builder->createStructField (ordinaryStructType, ee.fieldKey , fieldType);
492
493
// In case the original struct had offsets calculated, transfer those as well.
493
- // The original offsets should still be valid, since we only skip fields of types that aren't representable in memory.
494
+ // The original offsets should still be valid, since we only skip fields of types
495
+ // that aren't representable in memory.
494
496
originalField->transferChildrenOfTypeTo <IROffsetDecoration>(newField);
495
497
}
496
498
You can’t perform that action at this time.
0 commit comments