bugfixes for the guarded data flow analysis

This commit is contained in:
Araq 2013-06-12 00:41:02 +02:00
commit 0097305953
5 changed files with 103 additions and 71 deletions

View file

@ -324,8 +324,6 @@ proc trackOperand(tracked: PEffects, n: PNode, paramType: PType) =
of impNo:
Message(n.info, errGenerated, "'$1' is provably nil" % n.renderTree)
of impYes: discard
if skipTypes(paramType, abstractInst).kind == tyVar:
invalidateFacts(tracked.guards, n)
proc breaksBlock(n: PNode): bool =
case n.kind