Skip to content

Commit 02338c9

Browse files
authored
[NFC] Remove stale comment about unsafe casts (#7665)
We no longer support unsafe casts, so this comment is not meaningful.k
1 parent bb23d20 commit 02338c9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/passes/OptimizeCasts.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,6 @@ struct EarlyCastFinder
342342
// change the best cast to move.
343343
bestMove.bestCast = curr;
344344
}
345-
// We don't care about the safety of the cast at present. If there are
346-
// two casts with the same type one being safe and one being unsafe, the
347-
// first cast that we visit will be chosen to be moved. Perhaps in the
348-
// future we can consider prioritizing unsafe casts over safe ones since
349-
// users may be more interested in that.
350345
}
351346
}
352347
}

0 commit comments

Comments
 (0)