get rid of TOverloadIter.stackPtr

This commit is contained in:
Zahary Karadjov 2013-05-12 02:01:16 +03:00
commit af081f995e
3 changed files with 39 additions and 28 deletions

View file

@ -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