This is an archive of the discontinued LLVM Phabricator instance.

[Z] Fix incomplete_type on ZLinux when compiling RemoteJITUtils
ClosedPublic

Authored by tungld on Aug 1 2021, 7:39 PM.

Details

Summary

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.

Diff Detail

Event Timeline

tungld requested review of this revision.Aug 1 2021, 7:39 PM
tungld created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptAug 1 2021, 7:39 PM
tungld retitled this revision from [Z] 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... to [Z] Fix incomplete_type on ZLinux when compiling RemoteJITUtils.Aug 1 2021, 7:42 PM
tungld edited the summary of this revision. (Show Details)
lhames accepted this revision.Aug 1 2021, 7:51 PM

LGTM. Do you have commit access? If not I'll be happy to commit on your behalf.

This revision is now accepted and ready to land.Aug 1 2021, 7:51 PM
tungld added a comment.Aug 1 2021, 7:56 PM

I don't have. This is my information: "name (email)" : "Tung D. Le (tung@jp.ibm.com)". Thank you!