From 83b8319b9b6d3fd497ca0b27e167f10c0fa190e4 Mon Sep 17 00:00:00 2001 From: slangbot <186143334+slangbot@users.noreply.github.com> Date: Thu, 9 Jan 2025 11:53:37 +0000 Subject: [PATCH] format code --- source/slang/slang-ir-legalize-binary-operator.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source/slang/slang-ir-legalize-binary-operator.cpp b/source/slang/slang-ir-legalize-binary-operator.cpp index 9661f29ea4..a1affb7e9d 100644 --- a/source/slang/slang-ir-legalize-binary-operator.cpp +++ b/source/slang/slang-ir-legalize-binary-operator.cpp @@ -67,9 +67,8 @@ void legalizeBinaryOp(IRInst* inst) if (inst->getOp() == kIROp_Lsh || inst->getOp() == kIROp_Rsh) { auto vectorType = as(compositeType); - compositeType = builder.getVectorType( - scalarValue->getDataType(), - vectorType->getElementCount()); + compositeType = + builder.getVectorType(scalarValue->getDataType(), vectorType->getElementCount()); } auto newRhs = builder.emitMakeCompositeFromScalar(compositeType, scalarValue); builder.replaceOperand(inst->getOperands() + 1, newRhs); @@ -86,9 +85,8 @@ void legalizeBinaryOp(IRInst* inst) if (inst->getOp() == kIROp_Lsh || inst->getOp() == kIROp_Rsh) { auto vectorType = as(compositeType); - compositeType = builder.getVectorType( - scalarValue->getDataType(), - vectorType->getElementCount()); + compositeType = + builder.getVectorType(scalarValue->getDataType(), vectorType->getElementCount()); } auto newLhs = builder.emitMakeCompositeFromScalar(compositeType, scalarValue); builder.replaceOperand(inst->getOperands(), newLhs);