-
Notifications
You must be signed in to change notification settings - Fork 14.5k
[Orc] Fix error handling in ORCPlatformSupport::initialize
#144637
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @SahilPatidar!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
Thanks @kr-2003 for reporting this and @SahilPatidar for the fix.
These are the tests failing in the CI(for windows). Are these related to the changes??
LLVM :: DebugInfo/COFF/local-variable-gap.ll
LLVM :: MC/COFF/cv-def-range-gap.s
|
Ahh, I think I see these failures on other PRs too (need to check main) So probably this PR is not responsible for it. |
Yep -- those failures are in non-JIT paths. I don't think this PR could have caused them. |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/207/builds/3501 Here is the relevant piece of the build log for the reference
|
Previously,
result
was checked before handling theError
returned bycallSPSWrapper
. IfError
wassuccess
butresult
indicated failure, the originalError
was silently dropped, triggering an assertion failure for unhandledError
.This patch ensures the
Error
is checked and returned before inspectingresult
, preventing assertion failures.