File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -536,11 +536,21 @@ pub enum Bitcast {
536536 I64ToI32 ,
537537 I64ToF32 ,
538538
539- // Pointers
540- P64ToI64 ,
541- I64ToP64 ,
539+ // PointerOrI64<->Pointer conversions. These preserve provenance.
540+ //
541+ // These are used when pointer values are being stored in
542+ // (PToP64) and loaded out of (P64ToP) PointerOrI64 values, so they
543+ // always have to preserve provenance.
542544 P64ToP ,
543545 PToP64 ,
546+
547+ // Pointer<->integer conversions. These do not preserve provenance.
548+ //
549+ // These are used when integer values are being stored in
550+ // (I64ToP64 and I32ToP) and loaded out of (P64ToI64 and PToI32) pointer
551+ // or PointerOrI64 values, so they never have any provenance to preserve.
552+ P64ToI64 ,
553+ I64ToP64 ,
544554 I32ToP ,
545555 PToI32 ,
546556
You can’t perform that action at this time.
0 commit comments