use is_uninhabited in more places
This commit is contained in:
parent
f9bbb5f31d
commit
bd3c7812cb
6 changed files with 12 additions and 12 deletions
|
@ -290,7 +290,7 @@ impl FunctionCx<'a, 'll, 'tcx> {
|
|||
mir::CastKind::Misc => {
|
||||
assert!(cast.is_llvm_immediate());
|
||||
let ll_t_out = cast.immediate_llvm_type(bx.cx);
|
||||
if operand.layout.abi == layout::Abi::Uninhabited {
|
||||
if operand.layout.abi.is_uninhabited() {
|
||||
return (bx, OperandRef {
|
||||
val: OperandValue::Immediate(C_undef(ll_t_out)),
|
||||
layout: cast,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue