Address PR feedback

This commit is contained in:
Scott McMurray 2025-04-07 18:12:06 -07:00
parent 51e67e21cf
commit 502f7f9c24
2 changed files with 19 additions and 1 deletions

View file

@ -581,7 +581,9 @@ impl<'a, 'tcx, V: CodegenObject> OperandRef<'tcx, V> {
);
// In principle we could insert assumes on the possible range of `discr`, but
// currently in LLVM this seems to be a pessimization.
// currently in LLVM this isn't worth it because the original `tag` will
// have either a `range` parameter attribute or `!range` metadata,
// or come from a `transmute` that already `assume`d it.
discr
}