Skip to content

getindex errors for IdDict as defined in Core.Compiler #51986

@vchuravy

Description

@vchuravy

While working on #36832 I cam across:

  UndefVarError: `limitrepr` not defined
  Stacktrace:
    [1] setindex!(d::Core.Compiler.IdDict{Core.SSAValue, Core.SSAValue}, val::Any, key::Any)
      @ Core.Compiler ./iddict.jl:87
function setindex!(d::IdDict{K,V}, @nospecialize(val), @nospecialize(key)) where {K, V}
    !isa(key, K) && throw(ArgumentError("$(limitrepr(key)) is not a valid key for type $K"))
    if !(val isa V) # avoid a dynamic call
        val = convert(V, val)::V
    end

Metadata

Metadata

Assignees

No one assigned

    Labels

    backport 1.10Change should be backported to the 1.10 releasebugIndicates an unexpected problem or unintended behaviorcompiler:optimizerOptimization passes (mostly in base/compiler/ssair/)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions