[all-commits] [llvm/llvm-project] 07a5b7: [examples] Fix incomplete_type on ZLinux when comp...

lhames via All-commits all-commits at lists.llvm.org
Sun Aug 1 22:19:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 07a5b7e5b13d231725a2109c0768547d1924683b
      https://github.com/llvm/llvm-project/commit/07a5b7e5b13d231725a2109c0768547d1924683b
  Author: Lang Hames <lhames at gmail.com>
  Date:   2021-08-02 (Mon, 02 Aug 2021)

  Changed paths:
    M llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.h

  Log Message:
  -----------
  [examples] Fix incomplete_type on ZLinux when compiling RemoteJITUtils.

When compiling on ZLinux, we got this error:

/llvm-project/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/ \
RemoteJITUtils.h:80:65:   required from here...
/usr/include/c++/7/bits/unique_ptr.h:76:22: error: invalid application of
'sizeof' to incomplete type 'llvm::orc::RemoteExecutorProcessControl'
  static_assert(sizeof(_Tp)>0,

This patch just removes nullptr from the initialization of
std::unique_ptr<RemoteExecutorProcessControl> to avoid the issue.

Patch by Tung D. Le (tung at jp.ibm.com). Thanks Tung!

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D107247




More information about the All-commits mailing list