Remove the hack in zext
TODO: make sure this doesn't break something else.
This commit is contained in:
parent
dd4a546de0
commit
0ffcbb0f6e
@ -1687,11 +1687,6 @@ fn call(
|
|||||||
|
|
||||||
fn zext(&mut self, value: RValue<'gcc>, dest_typ: Type<'gcc>) -> RValue<'gcc> {
|
fn zext(&mut self, value: RValue<'gcc>, dest_typ: Type<'gcc>) -> RValue<'gcc> {
|
||||||
// FIXME(antoyo): this does not zero-extend.
|
// FIXME(antoyo): this does not zero-extend.
|
||||||
if value.get_type().is_bool() && dest_typ.is_i8(&self.cx) {
|
|
||||||
// FIXME(antoyo): hack because base::from_immediate converts i1 to i8.
|
|
||||||
// Fix the code in codegen_ssa::base::from_immediate.
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
self.gcc_int_cast(value, dest_typ)
|
self.gcc_int_cast(value, dest_typ)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user