Skip to content

Commit

Permalink
fix segfault?
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Oct 5, 2024
1 parent 0b49f2a commit 9a80587
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/semcall.nim
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ proc markConvertersUsed*(c: PContext, n: PNode) =
assert n.kind in nkCallKinds
for i in 1..<n.len:
var a = n[i]
if a == nil: continue
if a.kind == nkHiddenDeref: a = a[0]
if a.kind == nkHiddenCallConv and a[0].kind == nkSym:
markUsed(c, a.info, a[0].sym)
Expand Down

0 comments on commit 9a80587

Please sign in to comment.