From 5976d74567f248b67a06f7c84180c3c909b3c0e3 Mon Sep 17 00:00:00 2001 From: Rong Ou Date: Wed, 23 Sep 2020 10:54:37 -0700 Subject: [PATCH] fix gcc-9 compilation error (#6298) --- CHANGELOG.md | 1 + cpp/src/dictionary/remove_keys.cu | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e35469f66c5..4c8713c46df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -87,6 +87,7 @@ - PR #6121 Replace calls to get_default_resource with get_current_device_resource - PR #6128 Add support for numpy RandomState handling in `sample` - PR #6137 Fix issue where `np.nan` is being return instead of `NAT` for datetime/duration types +- PR #6298 Fix gcc-9 compilation error in dictionary/remove_keys.cu - PR #6172 Fix slice issue with empty column - PR #6154 Warnings on row-wise op only when non-numeric columns are found. - PR #6150 Fix issue related to inferring `datetime64` format with UTC timezone in string data diff --git a/cpp/src/dictionary/remove_keys.cu b/cpp/src/dictionary/remove_keys.cu index 2953b07d325..e6b179c0a7d 100644 --- a/cpp/src/dictionary/remove_keys.cu +++ b/cpp/src/dictionary/remove_keys.cu @@ -80,7 +80,7 @@ std::unique_ptr remove_keys_fn( indices_type, keys_view.size(), cudf::mask_state::UNALLOCATED, stream); auto itr = cudf::detail::indexalator_factory::make_output_iterator(positions->mutable_view()); thrust::sequence(execpol->on(stream), itr, itr + keys_view.size()); - return std::move(positions); + return positions; }(); // copy the non-removed keys ( keys_to_keep_fn(idx)==true ) auto table_keys =