Skip to content

Commit f09d663

Browse files
committed
fix formatting
1 parent c03a0f1 commit f09d663

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

llvm/lib/Target/DirectX/DXILLegalizePass.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,20 @@ static void fixI8UseChain(Instruction &I,
147147
if (auto *Cast = dyn_cast<CastInst>(&I)) {
148148
if (!Cast->getSrcTy()->isIntegerTy(8))
149149
return;
150-
150+
151151
ToRemove.push_back(Cast);
152-
auto* Replacement =ReplacedValues[Cast->getOperand(0)];
152+
auto *Replacement = ReplacedValues[Cast->getOperand(0)];
153153
if (Cast->getType() == Replacement->getType()) {
154154
Cast->replaceAllUsesWith(Replacement);
155155
return;
156156
}
157-
Value* AdjustedCast = nullptr;
157+
Value *AdjustedCast = nullptr;
158158
if (Cast->getOpcode() == Instruction::ZExt)
159159
AdjustedCast = Builder.CreateZExtOrTrunc(Replacement, Cast->getType());
160160
if (Cast->getOpcode() == Instruction::SExt)
161161
AdjustedCast = Builder.CreateSExtOrTrunc(Replacement, Cast->getType());
162-
163-
if(AdjustedCast)
162+
163+
if (AdjustedCast)
164164
Cast->replaceAllUsesWith(AdjustedCast);
165165
}
166166
}
@@ -195,8 +195,7 @@ static void upcastI8AllocasAndUses(Instruction &I,
195195

196196
// Replace alloca
197197
IRBuilder<> Builder(AI);
198-
auto *NewAlloca =
199-
Builder.CreateAlloca(SmallestType);
198+
auto *NewAlloca = Builder.CreateAlloca(SmallestType);
200199
ReplacedValues[AI] = NewAlloca;
201200
ToRemove.push_back(AI);
202201
}

0 commit comments

Comments
 (0)