Skip to content

code reflection cannot be used from generated functions on Julia 1.10 #111

@IanButterworth

Description

@IanButterworth

Even with #109 which seems to be the fix for #108 there are many issues in nightly CI #110

i.e.

IR: Error During Test at /home/runner/work/IRTools.jl/IRTools.jl/test/ir.jl:47
  Test threw exception
  Expression: f(nothing, 2, 3) == 3
  code reflection cannot be used from generated functions
  Stacktrace:
    [1] error(s::String)
      @ Base ./error.jl:35
    [2] method_instances(f::Any, t::Any, world::UInt64)
      @ Base ./reflection.jl:1176
    [3] #code_lowered#15
      @ ./reflection.jl:976 [inlined]
    [4] code_lowered
      @ ./reflection.jl:966 [inlined]
    [5] build_codeinfo(ir::IRTools.Inner.IR)
      @ IRTools.Inner ~/work/IRTools.jl/IRTools.jl/src/eval.jl:7
    [6] #s66#5
      @ ~/work/IRTools.jl/IRTools.jl/src/eval.jl:19 [inlined]
    [7] var"#s66#5"(::Any, arg1::Any, arg2::Any, arg3::Any)
      @ Main ./none:0
    [8] (::Core.GeneratedFunctionStub)(::UInt64, ::LineNumberNode, ::Any, ::Vararg{Any})
      @ Core ./boot.jl:602
    [9] macro expansion
      @ /opt/hostedtoolcache/julia/nightly/x64/share/julia/stdlib/v1.10/Test/src/Test.jl:478 [inlined]
   [10] top-level scope
      @ ~/work/IRTools.jl/IRTools.jl/test/ir.jl:47

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions