diff options
| author | Antoni Boucher <bouanto@zoho.com> | 2024-06-12 08:43:28 -0400 |
|---|---|---|
| committer | Antoni Boucher <bouanto@zoho.com> | 2024-07-02 12:24:47 -0400 |
| commit | 0ffcbb0f6eda96ade2f1c3fbda4316998b8fbb90 (patch) | |
| tree | 498e6d911bed18be4d4bdebc60ca9a5b78575bbc | |
| parent | dd4a546de0af391759a901ac070e6ca66a6c7af1 (diff) | |
| download | rust-0ffcbb0f6eda96ade2f1c3fbda4316998b8fbb90.tar.gz rust-0ffcbb0f6eda96ade2f1c3fbda4316998b8fbb90.zip | |
Remove the hack in zext
TODO: make sure this doesn't break something else.
| -rw-r--r-- | src/builder.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/builder.rs b/src/builder.rs index 0d5ef42833d..91a019318a8 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -1687,11 +1687,6 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> { fn zext(&mut self, value: RValue<'gcc>, dest_typ: Type<'gcc>) -> RValue<'gcc> { // 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) } |
