bugfixes for the guarded data flow analysis
This commit is contained in:
parent
38faa64b12
commit
0097305953
5 changed files with 103 additions and 71 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue