summaryrefslogtreecommitdiffstats
path: root/openmp
diff options
context:
space:
mode:
authorGeorge Rokos <grokos@us.ibm.com>2017-02-22 22:50:28 +0000
committerGeorge Rokos <grokos@us.ibm.com>2017-02-22 22:50:28 +0000
commit63efdd9e1e0a44a1f7c4e31954167857703d16b4 (patch)
treee530bd1a0587cdb5f24cc364b6f553844eb347d1 /openmp
parent19d9533496f90638402e2ead5ac98209da7145e7 (diff)
downloadbcm5719-llvm-63efdd9e1e0a44a1f7c4e31954167857703d16b4.tar.gz
bcm5719-llvm-63efdd9e1e0a44a1f7c4e31954167857703d16b4.zip
[OpenMP] Missing virtual destructor in KMPAffinity
Added virtual destructor in a class containing virtual functions. Differential Revision: https://reviews.llvm.org/D30271 llvm-svn: 295896
Diffstat (limited to 'openmp')
-rw-r--r--openmp/runtime/src/kmp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h
index fb2da37ad62..885495218ea 100644
--- a/openmp/runtime/src/kmp.h
+++ b/openmp/runtime/src/kmp.h
@@ -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
OpenPOWER on IntegriCloud