File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
compiler/rustc_codegen_ssa/src/mir Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,11 @@ pub enum OperandValue<V> {
45
45
Immediate ( V ) ,
46
46
/// A pair of immediate LLVM values. Used by wide pointers too.
47
47
///
48
- /// An `OperandValue` *must* be this variant for any type for which
48
+ /// # Invariants
49
+ /// - for `Pair(a, b)`, `a` is always offset 0 but **may** be `FieldIdx::ONE`
50
+ /// - An `OperandValue` *must* be this variant for any type for which
49
51
/// [`LayoutTypeCodegenMethods::is_backend_scalar_pair`] returns `true`.
50
- /// The backend values in this variant must be the *immediate* backend types,
52
+ /// - The backend values in this variant must be the *immediate* backend types,
51
53
/// as returned by [`LayoutTypeCodegenMethods::scalar_pair_element_backend_type`]
52
54
/// with `immediate: true`.
53
55
Pair ( V , V ) ,
You can’t perform that action at this time.
0 commit comments