[PATCH] D107247: [Z] Fix incomplete_type on ZLinux when compiling RemoteJITUtilsWhen compiling on ZLinux, we got this error:```/llvm-project/llvm/examples/ OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.h:80:65:required from here...

Tung D. Le via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 1 19:39:25 PDT 2021


tungld created this revision.
tungld requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

.../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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107247

Files:
  llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.h


Index: llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.h
===================================================================
--- llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.h
+++ llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.h
@@ -77,7 +77,7 @@
   virtual ~JITLinkExecutor();
 
 protected:
-  std::unique_ptr<RemoteExecutorProcessControl> OwnedEPC{nullptr};
+  std::unique_ptr<RemoteExecutorProcessControl> OwnedEPC;
   RemoteExecutorProcessControl *EPC{nullptr};
 
   JITLinkExecutor();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107247.363363.patch
Type: text/x-patch
Size: 554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210802/b833a9da/attachment.bin>


More information about the llvm-commits mailing list