File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments