Instead we generate a discriminant rvalue and cast the result of that.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.