Fix cranelift build
This commit is contained in:
parent
c478574786
commit
3a7970848c
6 changed files with 28 additions and 10 deletions
|
@ -186,9 +186,8 @@ pub(crate) fn codegen_const_value<'tcx>(
|
|||
}
|
||||
|
||||
match x {
|
||||
Scalar::Raw { data, size } => {
|
||||
assert_eq!(u64::from(size), layout.size.bytes());
|
||||
CValue::const_val(fx, layout, data)
|
||||
Scalar::Raw(int) => {
|
||||
CValue::const_val(fx, layout, int)
|
||||
}
|
||||
Scalar::Ptr(ptr) => {
|
||||
let alloc_kind = fx.tcx.get_global_alloc(ptr.alloc_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue