File tree 1 file changed +1
-7
lines changed
crates/rustc_codegen_spirv/src/codegen_cx
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,6 @@ impl<'tcx> CodegenCx<'tcx> {
18
18
self . builder . def_constant_cx ( ty, val, self )
19
19
}
20
20
21
- pub fn constant_i8 ( & self , span : Span , val : i8 ) -> SpirvValue {
22
- let ty = SpirvType :: Integer ( 8 , true ) . def ( span, self ) ;
23
- self . def_constant ( ty, SpirvConst :: U32 ( val as u32 ) )
24
- }
25
-
26
21
pub fn constant_u8 ( & self , span : Span , val : u8 ) -> SpirvValue {
27
22
self . constant_int_from_native_unsigned ( span, val)
28
23
}
@@ -48,8 +43,7 @@ impl<'tcx> CodegenCx<'tcx> {
48
43
}
49
44
50
45
pub fn constant_i64 ( & self , span : Span , val : u64 ) -> SpirvValue {
51
- let ty = SpirvType :: Integer ( 64 , true ) . def ( span, self ) ;
52
- self . def_constant ( ty, SpirvConst :: U64 ( val) )
46
+ self . constant_int_from_native_signed ( span, val)
53
47
}
54
48
55
49
pub fn constant_u64 ( & self , span : Span , val : u64 ) -> SpirvValue {
You can’t perform that action at this time.
0 commit comments