pub fn trans_case<'a>(bcx: &'a Block<'a>, r: &Repr, discr: Disr)
                  -> _match::opt_result<'a> {
    match *r {
        CEnum(ity, _, _) => {
            _match::single_result(rslt(bcx, C_integral(ll_inttype(bcx.ccx(), ity),
                                                       discr as u64, true)))
        }
        General(ity, _) => {
            _match::single_result(rslt(bcx, C_integral(ll_inttype(bcx.ccx(), ity),
                                                       discr as u64, true)))
        }
        Univariant(..) => {
            bcx.ccx().sess.bug("no cases for univariants or structs")
        }
        NullablePointer{ .. } => {
            assert!(discr == 0 || discr == 1);
            _match::single_result(rslt(bcx, C_i1(discr != 0)))
        }
    }
}
/**
 * Yield information about how to dispatch a case of the
 * discriminant-like value returned by `trans_switch`.
 *
 * This should ideally be less tightly tied to `_match`.
 */
Yield information about how to dispatch a case of the
discriminant-like value returned by `trans_switch`.

This should ideally be less tightly tied to `_match`.
Yield information about how to dispatch a case of the discriminant - like value returned by ` trans_switch ` . This should ideally be less tightly tied to ` _match ` .
pub fn trans_case<'a>(bcx: &'a Block<'a>, r: &Repr, discr: Disr)
                  -> _match::opt_result<'a> {
    match *r {
        CEnum(ity, _, _) => {
            _match::single_result(rslt(bcx, C_integral(ll_inttype(bcx.ccx(), ity),
                                                       discr as u64, true)))
        }
        General(ity, _) => {
            _match::single_result(rslt(bcx, C_integral(ll_inttype(bcx.ccx(), ity),
                                                       discr as u64, true)))
        }
        Univariant(..) => {
            bcx.ccx().sess.bug("no cases for univariants or structs")
        }
        NullablePointer{ .. } => {
            assert!(discr == 0 || discr == 1);
            _match::single_result(rslt(bcx, C_i1(discr != 0)))
        }
    }
}
pub fn trans_case < ' a > ( bcx : & ' a Block < ' a > , r : & Repr , discr : Disr ) -> _match :: opt_result < ' a > { match * r { CEnum ( ity , _ , _ ) => { _match :: single_result ( rslt ( bcx , C_integral ( ll_inttype ( bcx . ccx ( ) , ity ) , discr as u64 , true ) ) ) } General ( ity , _ ) => { _match :: single_result ( rslt ( bcx , C_integral ( ll_inttype ( bcx . ccx ( ) , ity ) , discr as u64 , true ) ) ) } Univariant ( .. ) => { bcx . ccx ( ) . sess . bug ( " " ) } NullablePointer { .. } => { assert ! ( discr 0 discr 1 ) ; _match :: single_result ( rslt ( bcx , C_i1 ( discr != 0 ) ) ) } } }
Yield information about how to dispatch a case of the
 discriminant-like value returned by `trans_switch`.
Yield information about how to dispatch a case of the discriminant - like value returned by ` trans_switch ` .
bcx
&'a Block<'a>
r
&Repr
discr
Disr
bcx
&'a Block<'a>
r
&Repr
discr
Disr