[all-commits] [llvm/llvm-project] 68ff52: [OpenMP] Fixed the link error that cannot find sta...

Shilei Tian via All-commits all-commits at lists.llvm.org
Tue Jan 12 13:48:47 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68ff52ffead2ba25cca442778ab19286000daad7
      https://github.com/llvm/llvm-project/commit/68ff52ffead2ba25cca442778ab19286000daad7
  Author: Shilei Tian <tianshilei1992 at gmail.com>
  Date:   2021-01-12 (Tue, 12 Jan 2021)

  Changed paths:
    M openmp/libomptarget/plugins/common/MemoryManager/MemoryManager.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list