-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
interpret Expr(:isdefined, ::QuoteNode) correctly #40562
Conversation
3c4fa1e
to
004bf08
Compare
This sounds like someone generated corrupt IR, which is not permitted. Using lowering from an AST should prevent this from reaching the backend, and any compiler passes in Core.Compiler are written to avoid generating it later. Can you add a test to julia/base/compiler/validation.jl instead to reject this? |
Would it be problematic to consider this valid? Many Cassette style code transformations use |
Hm, perhaps we should eliminate that code, but in the meantime, it should be taught how to correctly inline a |
Right; inlining into |
ref #40562 (comment) (cherry picked from commit 10b010f)
discovered in JuliaDebug/JuliaInterpreter.jl#477