Clarify when None
is returned in cast_immediate
function.
This commit is contained in:
parent
832ccdc8df
commit
b455e43729
1 changed files with 2 additions and 0 deletions
|
@ -282,6 +282,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
||||||
|
|
||||||
/// Cast one of the immediates from an [`OperandValue::Immediate`]
|
/// Cast one of the immediates from an [`OperandValue::Immediate`]
|
||||||
/// or an [`OperandValue::Pair`] to an immediate of the target type.
|
/// or an [`OperandValue::Pair`] to an immediate of the target type.
|
||||||
|
///
|
||||||
|
/// Returns `None` if the cast is not possible.
|
||||||
fn cast_immediate(
|
fn cast_immediate(
|
||||||
&self,
|
&self,
|
||||||
bx: &mut Bx,
|
bx: &mut Bx,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue