[Openmp-commits] [openmp] 143050f - [NFC][OpenMP] Fix warning about non-virtual dtor
Vitaly Buka via Openmp-commits
openmp-commits at lists.llvm.org
Thu Nov 17 23:24:56 PST 2022
Author: Vitaly Buka
Date: 2022-11-17T23:24:39-08:00
New Revision: 143050f55278382faadcbd84f6082b41c3cd2b1c
URL: https://github.com/llvm/llvm-project/commit/143050f55278382faadcbd84f6082b41c3cd2b1c
DIFF: https://github.com/llvm/llvm-project/commit/143050f55278382faadcbd84f6082b41c3cd2b1c.diff
LOG: [NFC][OpenMP] Fix warning about non-virtual dtor
Added:
Modified:
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
Removed:
################################################################################
diff --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
index e5d320249a5f5..c5dd7fa70a008 100644
--- a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
+++ b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
@@ -630,6 +630,9 @@ struct GenericDeviceResourceRef {
/// Destroy and release the resources pointed by the reference.
virtual Error destroy() = 0;
+
+protected:
+ ~GenericDeviceResourceRef() = default;
};
/// Class that implements a resource pool belonging to a device. This class
More information about the Openmp-commits
mailing list