Skip to content

Commit 1a05106

Browse files
committed
Add+Use mir::BinOp::Cmp
1 parent a951158 commit 1a05106

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/common.rs

+4
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
9494
self.const_int(self.type_i32(), i as i64)
9595
}
9696

97+
fn const_i8(&self, i: i8) -> RValue<'gcc> {
98+
self.const_int(self.type_i8(), i as i64)
99+
}
100+
97101
fn const_u32(&self, i: u32) -> RValue<'gcc> {
98102
self.const_uint(self.type_u32(), i as u64)
99103
}

0 commit comments

Comments
 (0)