fix compiler crash
This commit is contained in:
parent
331d1a6ca1
commit
07f76c3ef9
1 changed files with 4 additions and 1 deletions
|
|
@ -182,7 +182,10 @@ const
|
||||||
HighRegisterPressure = 40
|
HighRegisterPressure = 40
|
||||||
|
|
||||||
proc bestEffort(c: PCtx): TLineInfo =
|
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 =
|
proc getTemp(cc: PCtx; tt: PType): TRegister =
|
||||||
let typ = tt.skipTypesOrNil({tyStatic})
|
let typ = tt.skipTypesOrNil({tyStatic})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue