]> granicus.if.org Git - clang/commit
CFG.cpp: Fix wrapping logic when printing block preds/succs.
authorWill Dietz <wdietz2@illinois.edu>
Mon, 7 Jan 2013 09:51:17 +0000 (09:51 +0000)
committerWill Dietz <wdietz2@illinois.edu>
Mon, 7 Jan 2013 09:51:17 +0000 (09:51 +0000)
commitdac62528c1a66db867e21cfa7cfc439d557d6f0c
tree544af49a98ea0e2607cebc92459f1dc5d57f327a
parentc3d0c82ab0ce17c684c0192f14059d8e4d63156c
CFG.cpp: Fix wrapping logic when printing block preds/succs.

First check only wrapped with i==8, second wrapped at i==2,8,18,28,...
This fix restores the intended behavior: i==8,18,28,...

Found with -fsanitize=integer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171718 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFG.cpp
test/Analysis/cfg.cpp [new file with mode: 0644]