diff options
| author | varkor <github@varkor.com> | 2019-03-12 20:25:41 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-05-01 23:10:57 +0100 |
| commit | f5712d2de09e2c35843150b05fdf3672534dff00 (patch) | |
| tree | 2d2a3dce43974e79d411aa2ecd5deffdd0494a16 /src/librustc_codegen_ssa | |
| parent | 245a474ab7f782912255152e68a7e545718820bf (diff) | |
| download | rust-f5712d2de09e2c35843150b05fdf3672534dff00.tar.gz rust-f5712d2de09e2c35843150b05fdf3672534dff00.zip | |
Add `ConstValue::Placeholder`
Diffstat (limited to 'src/librustc_codegen_ssa')
| -rw-r--r-- | src/librustc_codegen_ssa/mir/operand.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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, |
