-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Switch out asserts for llvm_unreachable #17770
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
@swift-ci please test |
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.
The "problem" with llvm_unreachable
is that debug builds can fail because not every library links against the requisite LLVM support library, even though they include this file (perhaps indirectly). Please test the debug build first because this failed for my configuration.
We can't live with this number of asserts for very long – it's not just an annoyance, it also fills up CI logs. If a quick fix like this isn't enough, we'd probably have to revert the other patch. edit: sorry, meant this number of warnings not asserts |
Let me make another attempt at fixing CMake files when building debug. Otherwise we'll need to use |
Do I have permission to push to this branch if I fix the CMake files? |
sure, I think the right boxes are checked |
Just to be clear, please don't push to the branch directly. You should always be going through PR testing. |
So I have |
Oh wait, never mind, this seems intentional. |
It looks like pushing to your branch isn't worth the trouble for a hot fix like this. I've testing #17772 now. That solves the accidental fall through warning and avoids using |
@jrose-apple I think he meant push to my fork's PR branch – which GitHub should allow. |
Hi @airspeedswift – Yes, that is what I meant, but as I quickly discovered, that would have meant temporarily adding your repo/branch as a remote on my repo, and that doesn't seem to be worth the trouble for a hot fix. |
Closing as superseded by #17772 |
Build failed |
#16237 introduced fall through warnings when building without asserts, this replaces them with
llvm_unreachable