mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 04:02:41 +00:00
fix compiler crash
This commit is contained in:
@@ -182,7 +182,10 @@ const
|
||||
HighRegisterPressure = 40
|
||||
|
||||
proc bestEffort(c: PCtx): TLineInfo =
|
||||
(if c.prc == nil: c.module.info else: c.prc.sym.info)
|
||||
if c.prc != nil and c.prc.sym != nil:
|
||||
c.prc.sym.info
|
||||
else:
|
||||
c.module.info
|
||||
|
||||
proc getTemp(cc: PCtx; tt: PType): TRegister =
|
||||
let typ = tt.skipTypesOrNil({tyStatic})
|
||||
|
||||
Reference in New Issue
Block a user