Commit 36e7587
authored
[SYCL] Move simple event_impl constructor to header (#6611)
On certain systems unittests that uses the event_impl constructor with
no arguments may disagree with the event_impl source file on the layout
of the default std::optional argument. This can cause unexpected memory
accesses when performing operations on the passed argument. This commit
works around this issue by moving the body of the constructor to the
header.
Signed-off-by: Larsen, Steffen <[email protected]>1 parent 2b50820 commit 36e7587
2 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 120 | | |
125 | 121 | | |
126 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
0 commit comments