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

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,