1
Fork 0

Give the assume intrinsic a fallback body

This commit is contained in:
Oli Scherer 2024-02-16 17:29:34 +00:00
parent ae9d7b0c64
commit 6a671bdbf1
2 changed files with 24 additions and 14 deletions

View file

@ -407,7 +407,7 @@ pub fn check_intrinsic_type(
}
sym::float_to_int_unchecked => (2, 0, vec![param(0)], param(1)),
sym::assume => (0, 0, vec![tcx.types.bool], Ty::new_unit(tcx)),
sym::assume => (0, 1, vec![tcx.types.bool], Ty::new_unit(tcx)),
sym::likely => (0, 0, vec![tcx.types.bool], tcx.types.bool),
sym::unlikely => (0, 0, vec![tcx.types.bool], tcx.types.bool),