Skip to content

Commit

Permalink
Switched to CastKind::PointerExposeAddress (for strict provenance),…
Browse files Browse the repository at this point in the history
… but now we get errors cast fat ptrs to `usize`.
  • Loading branch information
kkysen committed Aug 12, 2022
1 parent ae42f28 commit 776cddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dynamic_instrumentation/src/point/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub fn cast_ptr_to_usize<'tcx>(
source_info: SourceInfo::outermost(DUMMY_SP),
kind: StatementKind::Assign(Box::new((
casted_local.into(),
Rvalue::Cast(CastKind::Misc, ptr, usize_ty),
Rvalue::Cast(CastKind::PointerExposeAddress, ptr, usize_ty),
))),
};
new_stmts.push(cast_stmt);
Expand Down

0 comments on commit 776cddf

Please sign in to comment.