Skip to content

Commit 803a309

Browse files
committed
[NFC] address a compiler warning about auto& being ignored
1 parent 7f83a53 commit 803a309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Mandatory/DefiniteInitialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ void LifetimeChecker::injectActorHops() {
967967

968968
AvailabilitySet inSet(outSet.size());
969969
auto const &predecessors = block.getPredecessorBlocks();
970-
for (const auto &pred : predecessors)
970+
for (auto *pred : predecessors)
971971
inSet.mergeIn(getBlockInfo(pred).OutAvailability);
972972

973973
if (inSet.isAllYes()) {

0 commit comments

Comments
 (0)