This commit is contained in:
Araq 2020-07-08 10:45:51 +02:00 • committed by Andreas Rumpf
commit e42ce877a6
2 changed files with 15 additions and 1 deletions

View file

@ -279,7 +279,7 @@ proc ccgIntroducedPtr(conf: ConfigRef; s: PSym, retType: PType): bool =
result = false
# first parameter and return type is 'lent T'? --> use pass by pointer
if s.position == 0 and retType != nil and retType.kind == tyLent:
result = true
result = pt.kind != tyVar
proc fillResult(conf: ConfigRef; param: PNode) =
fillLoc(param.sym.loc, locParam, param, ~"Result",