SIGN IN SIGN UP

[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"`.
E
Em Chu committed
cacbbe8854d42bee042010045e7cfe4f4869cebb
Parent: 4e8acb4
Committed by GitHub <noreply@github.com> on 4/16/2026, 7:37:06 PM