This commit is contained in:
Araq
2013-07-01 20:25:38 +02:00
parent 9b4be8a739
commit dfe195a4a1
2 changed files with 4 additions and 1 deletions

View File

@@ -873,4 +873,4 @@ proc genAsgn(p: BProc, e: PNode, fastAsgn: bool) =
proc genStmts(p: BProc, t: PNode) =
var a: TLoc
expr(p, t, a)
InternalAssert a.k in {locNone, locTemp}
InternalAssert a.k in {locNone, locTemp, locLocalVar}

View File

@@ -22,6 +22,9 @@ proc getPA(): PA =
b: bool
b = not false
return nil
# bug #501
proc f(): int = result
var
global: int