Skip to content

Commit

Permalink
more on dereferencability
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Dec 22, 2018
1 parent 0b9df7a commit 61c2e82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion text/0000-raw-reference-operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,7 @@ Does the operator creating a raw pointer allow creating pointers that are not
dereferencable (with the size determined by `mem::size_of_val`)? It might turn
out to be useful to make dereferencability not part of the validity invariant,
but part of the alias model, so this is a separate question from whether the
pointer is aligned and non-NULL.
pointer is aligned and non-NULL. Notice that we use `getelementptr inbounds`
for field access, so we would require some amount of dereferencability anyway
(or we could change codegen to not emit `inbounds` when creating a raw
reference, but that might adversely affect performance).

0 comments on commit 61c2e82

Please sign in to comment.