fixes c++ codegen regression
This commit is contained in:
parent
d933fde40d
commit
1314e91ef5
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ proc genThisArg(p: BProc; ri: PNode; i: int; typ: PType): PRope =
|
||||||
if x.typ.kind == tyPtr:
|
if x.typ.kind == tyPtr:
|
||||||
result = genArgNoParam(p, x)
|
result = genArgNoParam(p, x)
|
||||||
result.app("->")
|
result.app("->")
|
||||||
elif x.kind in {nkHiddenDeref, nkDerefExpr}:
|
elif x.kind in {nkHiddenDeref, nkDerefExpr} and x[0].typ.kind == tyPtr:
|
||||||
result = genArgNoParam(p, x[0])
|
result = genArgNoParam(p, x[0])
|
||||||
result.app("->")
|
result.app("->")
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue