mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
Add+Use mir::BinOp::Cmp
This commit is contained in:
parent
a951158565
commit
1a05106f94
@ -94,6 +94,10 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
|
|||||||
self.const_int(self.type_i32(), i as i64)
|
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> {
|
fn const_u32(&self, i: u32) -> RValue<'gcc> {
|
||||||
self.const_uint(self.type_u32(), i as u64)
|
self.const_uint(self.type_u32(), i as u64)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user