Skip to content

Commit d14f440

Browse files
committed
Remove the hack in zext
TODO: make sure this doesn't break something else.
1 parent b9282c5 commit d14f440

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/builder.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,11 +1687,6 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
16871687

16881688
fn zext(&mut self, value: RValue<'gcc>, dest_typ: Type<'gcc>) -> RValue<'gcc> {
16891689
// FIXME(antoyo): this does not zero-extend.
1690-
if value.get_type().is_bool() && dest_typ.is_i8(self.cx) {
1691-
// FIXME(antoyo): hack because base::from_immediate converts i1 to i8.
1692-
// Fix the code in codegen_ssa::base::from_immediate.
1693-
return value;
1694-
}
16951690
self.gcc_int_cast(value, dest_typ)
16961691
}
16971692

0 commit comments

Comments
 (0)