Skip to content

Commit 96a57a2

Browse files
committed
Use incr in CilCfg.countLoopsVisitor
1 parent 9a5d2e3 commit 96a57a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/cilCfg.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class countLoopsVisitor(count) = object
2929
inherit nopCilVisitor
3030

3131
method! vstmt stmt = match stmt.skind with
32-
| Loop _ -> count := !count + 1; DoChildren
32+
| Loop _ -> incr count; DoChildren
3333
| _ -> DoChildren
3434

3535
end

0 commit comments

Comments
 (0)