diff --git a/clang/runtime/dpct-rt/include/dpl_extras/vector.h.inc b/clang/runtime/dpct-rt/include/dpl_extras/vector.h.inc index f22897765e9c..ed68cb054c7f 100644 --- a/clang/runtime/dpct-rt/include/dpl_extras/vector.h.inc +++ b/clang/runtime/dpct-rt/include/dpl_extras/vector.h.inc @@ -682,10 +682,6 @@ public: reference front() { return *begin(); } const_reference back(void) const { return *(end() - 1); } reference back(void) { return *(end() - 1); } - pointer data(void) { return reinterpret_cast(_storage); } - const_pointer data(void) const { - return reinterpret_cast(_storage); - } void shrink_to_fit(void) { if (_size != capacity()) { void *a = alloc_store(_size * sizeof(T)); diff --git a/clang/test/dpct/helper_files_ref/include/dpl_extras/vector.h b/clang/test/dpct/helper_files_ref/include/dpl_extras/vector.h index 7c3fc27e8c6d..4b588428ca11 100644 --- a/clang/test/dpct/helper_files_ref/include/dpl_extras/vector.h +++ b/clang/test/dpct/helper_files_ref/include/dpl_extras/vector.h @@ -627,10 +627,6 @@ class device_vector { reference front() { return *begin(); } const_reference back(void) const { return *(end() - 1); } reference back(void) { return *(end() - 1); } - pointer data(void) { return reinterpret_cast(_storage); } - const_pointer data(void) const { - return reinterpret_cast(_storage); - } void shrink_to_fit(void) { if (_size != capacity()) { void *a = alloc_store(_size * sizeof(T));