Clarify when None is returned in cast_immediate function.

This commit is contained in:
Markus Reiter 2024-05-18 23:45:15 +02:00
parent 832ccdc8df
commit b455e43729
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -282,6 +282,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
/// Cast one of the immediates from an [`OperandValue::Immediate`]
/// or an [`OperandValue::Pair`] to an immediate of the target type.
///
/// Returns `None` if the cast is not possible.
fn cast_immediate(
&self,
bx: &mut Bx,