Fix HCR crash because certain procs were hcrGetProc'ed before being hcrRegisterProc'ed (#11971)
This commit is contained in:
parent
d5840e1e3d
commit
ac7a365137
1 changed files with 1 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ when defined(createNimHcr):
|
|||
|
||||
proc hcrGetProc*(module: cstring, name: cstring): pointer {.nimhcr.} =
|
||||
trace " get proc: ", module.sanitize, " ", name
|
||||
return modules[$module].procs[$name].jump
|
||||
return modules[$module].procs.getOrDefault($name, ProcSym()).jump
|
||||
|
||||
proc hcrRegisterGlobal*(module: cstring,
|
||||
name: cstring,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue