This is an archive of the discontinued LLVM Phabricator instance.

[Orc] Allow in-band errors for runAsMain() via SPS
AbandonedPublic

Authored by sgraenitz on Oct 11 2021, 1:39 AM.

Details

Reviewers
lhames
Summary

runAsMain() may fail for function-specific reasons (e.g. provided pointer to main is invalid). There should be a way to propagate such in-band errors back to the controller.

Diff Detail

Event Timeline

sgraenitz created this revision.Oct 11 2021, 1:39 AM
sgraenitz requested review of this revision.Oct 11 2021, 1:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2021, 1:39 AM
sgraenitz abandoned this revision.Oct 11 2021, 11:33 AM

Passing a valid function address is the responsibility of the user and laying out argv correctly is an ABI detail. If anything like this fails, we probably have to hang up anyway and send the error with that D111527.