CTFE SwitchInt: update comment

This commit is contained in:
Ralf Jung 2022-03-03 14:46:29 -05:00
parent 32cbc7630b
commit 0854781861
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
let mut target_block = targets.otherwise();
for (const_int, target) in targets.iter() {
// Compare using binary_op, to also support pointer values
// Compare using MIR BinOp::Eq, to also support pointer values.
// (Avoiding `self.binary_op` as that does some redundant layout computation.)
let res = self
.overflowing_binary_op(
mir::BinOp::Eq,