get rid of TOverloadIter.stackPtr
This commit is contained in:
parent
7a2b1a7520
commit
af081f995e
3 changed files with 39 additions and 28 deletions
|
|
@ -282,6 +282,7 @@ proc RecoverContext(c: PContext) =
|
|||
# faster than wrapping every stack operation in a 'try finally' block and
|
||||
# requires far less code.
|
||||
c.currentScope = c.topLevelScope
|
||||
c.scopeDepth = 2 # importTable and top-level scope
|
||||
while getCurrOwner().kind != skModule: popOwner()
|
||||
while c.p != nil and c.p.owner.kind != skModule: c.p = c.p.next
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue