mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 19:22:40 +00:00
Fix HCR crash because certain procs were hcrGetProc'ed before being hcrRegisterProc'ed (#11971)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user