Converter bug fixes (#9700)

* Fixes #9698
* Fixes #9699
This commit is contained in:
cooldome 2018-11-15 12:14:48 +00:00 • committed by Andreas Rumpf
commit c5c4da4f3c
4 changed files with 118 additions and 2 deletions

View file

@ -640,6 +640,7 @@ proc analyseIfAddressTakenInCall(c: PContext, n: PNode) =
return
for i in countup(1, sonsLen(n) - 1):
let n = if n.kind == nkHiddenDeref: n[0] else: n
if n.sons[i].kind == nkHiddenCallConv:
# we need to recurse explicitly here as converters can create nested
# calls and then they wouldn't be analysed otherwise