rustc_index: Add a ZERO constant to index types
It is commonly used.
This commit is contained in:
@@ -1393,7 +1393,7 @@ fn llvm_add_sub<'tcx>(
|
||||
|
||||
// c + carry -> c + first intermediate carry or borrow respectively
|
||||
let int0 = crate::num::codegen_checked_int_binop(fx, bin_op, a, b);
|
||||
let c = int0.value_field(fx, FieldIdx::new(0));
|
||||
let c = int0.value_field(fx, FieldIdx::ZERO);
|
||||
let cb0 = int0.value_field(fx, FieldIdx::new(1)).load_scalar(fx);
|
||||
|
||||
// c + carry -> c + second intermediate carry or borrow respectively
|
||||
|
||||
Reference in New Issue
Block a user