From f5712d2de09e2c35843150b05fdf3672534dff00 Mon Sep 17 00:00:00 2001 From: varkor Date: Tue, 12 Mar 2019 20:25:41 +0000 Subject: Add `ConstValue::Placeholder` --- src/librustc_codegen_ssa/mir/operand.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/librustc_codegen_ssa') diff --git a/src/librustc_codegen_ssa/mir/operand.rs b/src/librustc_codegen_ssa/mir/operand.rs index c2b1021f816..3b8e5b44953 100644 --- a/src/librustc_codegen_ssa/mir/operand.rs +++ b/src/librustc_codegen_ssa/mir/operand.rs @@ -79,6 +79,7 @@ impl<'a, 'tcx: 'a, V: CodegenObject> OperandRef<'tcx, V> { ConstValue::Unevaluated(..) => bug!("unevaluated constant in `OperandRef::from_const`"), ConstValue::Param(_) => bug!("encountered a ConstValue::Param in codegen"), ConstValue::Infer(_) => bug!("encountered a ConstValue::Infer in codegen"), + ConstValue::Placeholder(_) => bug!("encountered a ConstValue::Placeholder in codegen"), ConstValue::Scalar(x) => { let scalar = match layout.abi { layout::Abi::Scalar(ref x) => x, -- cgit 1.4.1-3-g733a5