Skip to content

Commit

Permalink
Add+Use mir::BinOp::Cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmcm committed Mar 24, 2024
1 parent a951158 commit 1a05106
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
self.const_int(self.type_i32(), i as i64)
}

fn const_i8(&self, i: i8) -> RValue<'gcc> {
self.const_int(self.type_i8(), i as i64)
}

fn const_u32(&self, i: u32) -> RValue<'gcc> {
self.const_uint(self.type_u32(), i as u64)
}
Expand Down

0 comments on commit 1a05106

Please sign in to comment.