[Openmp-commits] [openmp] r295896 - [OpenMP] Missing virtual destructor in KMPAffinity
George Rokos via Openmp-commits
openmp-commits at lists.llvm.org
Wed Feb 22 14:50:28 PST 2017
Author: grokos
Date: Wed Feb 22 16:50:28 2017
New Revision: 295896
URL: http://llvm.org/viewvc/llvm-project?rev=295896&view=rev
Log:
[OpenMP] Missing virtual destructor in KMPAffinity
Added virtual destructor in a class containing virtual functions.
Differential Revision: https://reviews.llvm.org/D30271
Modified:
openmp/trunk/runtime/src/kmp.h
Modified: openmp/trunk/runtime/src/kmp.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp.h?rev=295896&r1=295895&r2=295896&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp.h (original)
+++ openmp/trunk/runtime/src/kmp.h Wed Feb 22 16:50:28 2017
@@ -629,6 +629,8 @@ public:
};
void* operator new(size_t n);
void operator delete(void* p);
+ // Need virtual destructor
+ virtual ~KMPAffinity() = default;
// Determine if affinity is capable
virtual void determine_capable(const char* env_var) {}
// Bind the current thread to os proc
More information about the Openmp-commits
mailing list