We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb23d20 commit 02338c9Copy full SHA for 02338c9
src/passes/OptimizeCasts.cpp
@@ -342,11 +342,6 @@ struct EarlyCastFinder
342
// change the best cast to move.
343
bestMove.bestCast = curr;
344
}
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.
350
351
352
0 commit comments