fix a compiler crash related to the new strings in C++ mode
This commit is contained in:
parent
4409c82228
commit
4ab1cfb0b0
2 changed files with 9 additions and 9 deletions
|
|
@ -1684,7 +1684,7 @@ proc isException*(t: PType): bool =
|
|||
|
||||
var base = t
|
||||
while base != nil:
|
||||
if base.sym.magic == mException:
|
||||
if base.sym != nil and base.sym.magic == mException:
|
||||
return true
|
||||
base = base.lastSon
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue