File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments