DPC++ daily 2022-07-29
Pre-release
Pre-release
·
130597 commits
to sycl
since this release
[SYCL][GDB] Fix op[] when called with typedef argument (#6459) The implementation of 'index' did not strip typedefs from the argument passed to it, when passed as a single number. Instead, TYPE_CODE_INT was expected. This leads to failures when calling 'accessor[arg]' using an arg that is either a typedef or something like size_t, which are considered TYPE_CODE_TYPEDEF inside GDB. The check fails and the function continues on and fails even though the argument could have been used in the int cast. Typedef stripping was added to the if condition to fix this. Signed-off-by: Nils-Christian Kempke <nils-christian.kempke@intel.com>