From 0f843d928274d45ecc6d096c815d03477ca85a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Tue, 23 Jan 2024 18:07:30 +0100 Subject: [PATCH] potential fix for lifetime of cache data take two --- qdp_project/src/benchmark/pipelines/MAX_scan_filter_pipe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qdp_project/src/benchmark/pipelines/MAX_scan_filter_pipe.h b/qdp_project/src/benchmark/pipelines/MAX_scan_filter_pipe.h index 197c2f5..88ebef0 100755 --- a/qdp_project/src/benchmark/pipelines/MAX_scan_filter_pipe.h +++ b/qdp_project/src/benchmark/pipelines/MAX_scan_filter_pipe.h @@ -330,7 +330,7 @@ public: // after the copy task has finished we obtain the pointer to the cached // copy of data_b which is then used from now on - base_t* data_ptr = reinterpret_cast(data->GetDataLocation()); + data_ptr = reinterpret_cast(data->GetDataLocation()); // nullptr is still a legal return value for CacheData::GetLocation() // even after waiting, so this must be checked