You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lower cglobal to GlobalRef(Core.Intrinsics, :cglobal) (#86)
Fix the lowering of `cglobal` to produce `GlobalRef(Core.Intrinsics, :cglobal)`
instead of a bare symbol `:cglobal`. The inference validator requires cglobal
to be a GlobalRef:
https://github.com/JuliaLang/julia/blob/7a8cd6e202f1d1216a6c0c0b928fb43a123cada8/Compiler/src/validation.jl#L87
With this commit `_to_lowered_expr` resolves `cglobal` to `GlobalRef(Core.Intrinsics, :cglobal)`,
matching Julia's builtin lowerer behavior and satisfying the inference
validator's requirements.
0 commit comments