This is an archive of the discontinued LLVM Phabricator instance.

[MCJIT] Fix case of Error::success being passed to report_fatal_error.
ClosedPublic

Authored by jascha on Aug 8 2018, 3:13 AM.

Details

Reviewers
lhames
Summary

MCJIT::getSymbolAddress was handling a non-fatal error condition of JITSymbol
as fatal. JITSymbol::operator bool returns false if no address is available
but no error is set. This can occur e.g. if the symbol name was not found.

Diff Detail

Event Timeline

jascha created this revision.Aug 8 2018, 3:13 AM
lhames accepted this revision.Aug 14 2018, 3:57 PM

Looks good to me. Thanks Jascha!

Do you have commit access? If not, do you mind if I commit on your behalf?

This revision is now accepted and ready to land.Aug 14 2018, 3:57 PM

I don't have commit access, please do commit.
Thank you.

lhames closed this revision.Feb 5 2019, 1:05 PM

This was committed in r339809.

Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2019, 1:05 PM