Skip to content

Commit 91814ca

Browse files
committed
Update a comment in splitAggregateLoad
(cherry picked from commit 094b204)
1 parent 36a3a14 commit 91814ca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/SILOptimizer/Utils/CanonicalizeInstruction.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,8 @@ splitAggregateLoad(LoadOperation loadInst, CanonicalizeInstruction &pass) {
344344
for (auto *destroy : lifetimeEndingInsts)
345345
nextII = killInstruction(destroy, nextII, pass);
346346

347-
// FIXME: remove this temporary hack to advance the iterator beyond
348-
// debug_value. A soon-to-be merged commit migrates CanonicalizeInstruction to
349-
// use InstructionDeleter.
347+
// TODO: remove this hack to advance the iterator beyond debug_value and check
348+
// SILInstruction::isDeleted() in the caller instead.
350349
while (nextII != loadInst->getParent()->end()
351350
&& nextII->isDebugInstruction()) {
352351
++nextII;

0 commit comments

Comments
 (0)