mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-22 16:08:24 +00:00
fix signedcast
This commit is contained in:
parent
81bd5580ff
commit
82fbd609c1
|
@ -1091,7 +1091,7 @@ fn compile_rvalue<'ctx>(
|
||||||
unreachable!("cast from {:?} to ptr", current_ty)
|
unreachable!("cast from {:?} to ptr", current_ty)
|
||||||
}
|
}
|
||||||
} else if target_llvm_ty.is_int_type() {
|
} else if target_llvm_ty.is_int_type() {
|
||||||
let is_signed = target_ty.kind.is_signed_integer();
|
let is_signed = ty.kind.is_signed_integer();
|
||||||
let target_llvm_ty = target_llvm_ty.into_int_type();
|
let target_llvm_ty = target_llvm_ty.into_int_type();
|
||||||
if current_ty.is_int_type() {
|
if current_ty.is_int_type() {
|
||||||
// int to int casts
|
// int to int casts
|
||||||
|
|
Loading…
Reference in a new issue