mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
[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
This commit is contained in:
parent
2a49b7c64a
commit
68ff52ffea
@ -338,4 +338,9 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
// GCC still cannot handle the static data member like Clang so we still need
|
||||
// this part.
|
||||
constexpr const size_t MemoryManagerTy::BucketSize[];
|
||||
constexpr const int MemoryManagerTy::NumBuckets;
|
||||
|
||||
#endif // LLVM_OPENMP_LIBOMPTARGET_PLUGINS_COMMON_MEMORYMANAGER_MEMORYMANAGER_H
|
||||
|
Loading…
Reference in New Issue
Block a user