Skip to content

Commit 3a2674c

Browse files
committed
add comment about the discriminant type being u128 by default
1 parent 6d1f02b commit 3a2674c

File tree

1 file changed

+5
-1
lines changed
  • kmir/src/kmir/kdist/mir-semantics/rt

1 file changed

+5
-1
lines changed

kmir/src/kmir/kdist/mir-semantics/rt/data.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,11 @@ This variant index is used to look up the _discriminant_ from a table in the typ
662662
663663
rule <k> #discriminant(typedValue(Aggregate(IDX, _), TY, _))
664664
=>
665-
typedValue(Integer(#lookupDiscriminant({TYPEMAP[TY]}:>TypeInfo, IDX), 16, false), TyUnknown, mutabilityNot)
665+
typedValue(
666+
Integer(#lookupDiscriminant({TYPEMAP[TY]}:>TypeInfo, IDX), 16, false), // parameters for storead u128
667+
TyUnknown,
668+
mutabilityNot
669+
)
666670
...
667671
</k>
668672
<types> TYPEMAP </types>

0 commit comments

Comments
 (0)