Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/mir.rs')
| -rw-r--r-- | crates/hir-ty/src/mir.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/hir-ty/src/mir.rs b/crates/hir-ty/src/mir.rs index c18a34a192..7c1cbbdf53 100644 --- a/crates/hir-ty/src/mir.rs +++ b/crates/hir-ty/src/mir.rs @@ -83,6 +83,10 @@ impl Operand { fn from_bytes(data: Vec<u8>, ty: Ty) -> Self { Operand::from_concrete_const(data, MemoryMap::default(), ty) } + + fn const_zst(ty: Ty) -> Operand { + Self::from_bytes(vec![], ty) + } } #[derive(Debug, PartialEq, Eq, Clone)] |