[OpenMP] Fixed the link error that cannot find static data member
authorShilei Tian <tianshilei1992@gmail.com>
Tue, 12 Jan 2021 21:48:19 +0000 (16:48 -0500)
committerShilei Tian <tianshilei1992@gmail.com>
Tue, 12 Jan 2021 21:48:28 +0000 (16:48 -0500)
commit68ff52ffead2ba25cca442778ab19286000daad7
tree2ef312e66db9a5a1346618591edb25a7295efad8
parent2a49b7c64a33566cf5db1a5b4042d6037ccc7cf5
[OpenMP] Fixed the link error that cannot find static data member

Constant static data member can be defined in the class without another
define after the class in C++17. Although it is C++17, Clang can still handle it
even w/o the flag for C++17. Unluckily, GCC cannot handle that.

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D94541
openmp/libomptarget/plugins/common/MemoryManager/MemoryManager.h