]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_llvm/base.rs
Implement simple codegen for unsized rvalues.
[rust.git] / src / librustc_codegen_llvm / base.rs
index bd0c62e4766aed81588e0a0cdef2a048e7cbb337..49db35f586524ac1fa59f0f4c908f25d0a308826 100644 (file)
@@ -295,7 +295,7 @@ pub fn coerce_unsized_into(
             OperandValue::Immediate(base) => {
                 unsize_thin_ptr(bx, base, src_ty, dst_ty)
             }
-            OperandValue::Ref(..) => bug!()
+            OperandValue::Ref(..) | OperandValue::UnsizedRef(..) => bug!()
         };
         OperandValue::Pair(base, info).store(bx, dst);
     };