julia
cacbbe88 - [JuliaLowering] Fix `ccall` nontrivial library expression within tuple (#61585)

Commit
40 days ago
[JuliaLowering] Fix `ccall` nontrivial library expression within tuple (#61585) Found precompiling Parsers in https://github.com/JuliaLang/julia/pull/61576. Another place the `K"static_eval"` form wasn't quite accurate. In the first arg of a foreigncall, if it is a tuple, we do want the "no referencing globals" property of `K"static_eval"`, but we also want it to be semi-inert: not converted in `est_to_dst`, and not desugared. We do want the expression to go through scope resolution, though (it's surprising this works in either lowering implementation). We don't have a way of converting this hybrid thing to Expr after lowering, so I've written one. I don't think there's much point in trying to treat this like it isn't a special case, so I've just called it `K"foreigncall_arg1"`.
Author
Parents
Loading