Skip to content

Commit

Permalink
Clarify wording of default-constructed accessors
Browse files Browse the repository at this point in the history
Avoid using the phrase "the underlying memory" for a default
constructed accessor because this implies that there is some
underlying memory.
  • Loading branch information
gmlueck committed Jun 29, 2023
1 parent 14a3729 commit a9f7355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6672,7 +6672,7 @@ accessor()
* The return values of [code]#get_pointer()# and [code]#get_multi_ptr()# are
unspecified.
* A default constructed accessor can be passed to a <<sycl-kernel-function>>,
but attempting to access the underlying memory produces undefined behavior.
but attempting to access data elements from it produces undefined behavior.
--

a@
Expand Down Expand Up @@ -8194,7 +8194,7 @@ local_accessor()
* The return values of [code]#get_pointer()# and [code]#get_multi_ptr()# are
unspecified.
* A default constructed local accessor can be passed to a
<<sycl-kernel-function>>, but attempting to access the underlying memory
<<sycl-kernel-function>>, but attempting to access data elements from it
produces undefined behavior.
--

Expand Down

0 comments on commit a9f7355

Please sign in to comment.