Skip to content

Commit 087f907

Browse files
committed
Fixing styles.
1 parent 954f6c8 commit 087f907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ Instruction *InstCombinerImpl::foldAggregateConstructionIntoAggregateReuse(
11601160
// Avoid constructing constant aggregate because constant value may expose
11611161
// more optimizations.
11621162
bool ConstAgg = true;
1163-
for (auto [Idx, Val] : enumerate(AggElts)) {
1163+
for (auto Val : AggElts) {
11641164
Value *Elt = (*Val)->DoPHITranslation(UseBB, It.first);
11651165
if (!isa<Constant>(Elt)) {
11661166
ConstAgg = false;
@@ -1178,7 +1178,7 @@ Instruction *InstCombinerImpl::foldAggregateConstructionIntoAggregateReuse(
11781178
continue;
11791179

11801180
BasicBlock *Pred = It.first;
1181-
Builder.SetInsertPoint(Pred, Pred->getTerminator()->getIterator());
1181+
Builder.SetInsertPoint(Pred->getTerminator());
11821182
Value *V = PoisonValue::get(AggTy);
11831183
for (auto [Idx, Val] : enumerate(AggElts)) {
11841184
Value *Elt = (*Val)->DoPHITranslation(UseBB, Pred);

0 commit comments

Comments
 (0)