Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix lli bug in llvm-4.0 #126

Open
wants to merge 1 commit into
base: llvm-4.0
Choose a base branch
from

Conversation

yufengzjj
Copy link

@yufengzjj yufengzjj commented Sep 2, 2018

when build lli, readMem return value type(Expected<std::vector<uint8_t>>) mismatch its sig(Expected<std::vector<char>>),cause a compiler error

D:/msys64/home/DELL/obfuscator/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:696:26: error: could not convert '((llvm::orc::remote::OrcRemoteTargetClient*)this)->callBllvm::orc::remote::OrcRemoteTargetRPCAPI::ReadMem(Src, Size)' from 'Expected<vector<unsigned char,allocator>>' to 'Expected<vector<char,allocator>>'
return callB(Src, Size);

it can be checked by gcc-8.2.0(8.0.x and above) but not in old gcc version(used to be a bug for gcc?).

affect llvm4.0-llvm5.0

llvm bug ref:https://bugzilla.redhat.com/show_bug.cgi?id=1540620

readMem return value type(Expected<std::vector<uint8_t>>) mismatch its sig(Expected<std::vector<char>>)

it can be checked by gcc-8.2.0(8.0.x and above,a compiler error) but not in old gcc version(used to be a bug for gcc?).

affect llvm4.0-llvm5.0

llvm bug ref:https://bugzilla.redhat.com/show_bug.cgi?id=1540620
@yufengzjj yufengzjj changed the title fix lli bug fix lli bug both in llvm-4.0 Sep 2, 2018
@yufengzjj yufengzjj changed the title fix lli bug both in llvm-4.0 fix lli bug in llvm-4.0 Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant