rename is_valid_for to is_valid

This commit is contained in:
Andreas Liljeqvist 2021-09-07 20:51:09 +02:00
parent dd34e0c966
commit 9095cf9905
4 changed files with 5 additions and 5 deletions

View file

@ -541,7 +541,7 @@ impl<'tcx> FnAbiLlvmExt<'tcx> for FnAbi<'tcx, Ty<'tcx>> {
// become 0..0 when the type becomes i1, which would be rejected
// by the LLVM verifier.
if let Int(..) = scalar.value {
if !scalar.is_bool() && !scalar.is_always_valid_for(bx) {
if !scalar.is_bool() && !scalar.is_always_valid(bx) {
bx.range_metadata(callsite, scalar.valid_range);
}
}