From 0ff8e2ca8833b3819ed8bf0e62a7691de45551e2 Mon Sep 17 00:00:00 2001 From: Dan Hoeflinger Date: Fri, 24 Feb 2023 15:33:03 -0500 Subject: [PATCH] Removing data() from USM_NONE device_vector Signed-off-by: Dan Hoeflinger --- clang/runtime/dpct-rt/include/dpl_extras/vector.h.inc | 4 ---- clang/test/dpct/helper_files_ref/include/dpl_extras/vector.h | 4 ---- 2 files changed, 8 deletions(-) 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));