mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 10:33:34 +00:00
Clarify when None
is returned in cast_immediate
function.
This commit is contained in:
parent
832ccdc8df
commit
b455e43729
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user