AArch64: Re-enable AArch64AddressTypePromotion
[oota-llvm.git] / lib / Target / AArch64 / AArch64AddressTypePromotion.cpp
index 76968012947744e89c47afd82fbdb9639c3e6607..ab2c4b73e67c37640cbafde81351280db24c29a9 100644 (file)
@@ -384,7 +384,7 @@ void AArch64AddressTypePromotion::mergeSExts(ValueToInsts &ValToSExtendedUses,
       if (ToRemove.count(Inst))
         continue;
       bool inserted = false;
-      for (auto Pt : CurPts) {
+      for (auto &Pt : CurPts) {
         if (DT.dominates(Inst, Pt)) {
           DEBUG(dbgs() << "Replace all uses of:\n" << *Pt << "\nwith:\n"
                        << *Inst << '\n');