Skip to content

Commit 4acf17d

Browse files
committed
format code
1 parent ce5388a commit 4acf17d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

source/slang/slang-ir-legalize-binary-operator.cpp

+4-6
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ void legalizeBinaryOp(IRInst* inst)
6767
if (inst->getOp() == kIROp_Lsh || inst->getOp() == kIROp_Rsh)
6868
{
6969
auto vectorType = as<IRVectorType>(compositeType);
70-
compositeType = builder.getVectorType(
71-
scalarValue->getDataType(),
72-
vectorType->getElementCount());
70+
compositeType =
71+
builder.getVectorType(scalarValue->getDataType(), vectorType->getElementCount());
7372
}
7473
auto newRhs = builder.emitMakeCompositeFromScalar(compositeType, scalarValue);
7574
builder.replaceOperand(inst->getOperands() + 1, newRhs);
@@ -86,9 +85,8 @@ void legalizeBinaryOp(IRInst* inst)
8685
if (inst->getOp() == kIROp_Lsh || inst->getOp() == kIROp_Rsh)
8786
{
8887
auto vectorType = as<IRVectorType>(compositeType);
89-
compositeType = builder.getVectorType(
90-
scalarValue->getDataType(),
91-
vectorType->getElementCount());
88+
compositeType =
89+
builder.getVectorType(scalarValue->getDataType(), vectorType->getElementCount());
9290
}
9391
auto newLhs = builder.emitMakeCompositeFromScalar(compositeType, scalarValue);
9492
builder.replaceOperand(inst->getOperands(), newLhs);

0 commit comments

Comments
 (0)