OSDN Git Service

utils: Fix segfault in flattencfg
authorJan Vesely <jan.vesely@rutgers.edu>
Wed, 13 Aug 2014 20:31:53 +0000 (20:31 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Wed, 13 Aug 2014 20:31:53 +0000 (20:31 +0000)
commitd3fa093dc94237e697025333dc15a512d4ed56cc
tree4c5916b05350de8d92daf0a291398e0f88d53aba
parentf7a325b3a17ff4153f2dc7e74a5969eafb36776a
utils: Fix segfault in flattencfg

v2: continue iterating through the rest of the bb
    use for loop

v3: initialize FlattenCFG pass in ScalarOps
    add test

v4: split off initializing flattencfg to a separate patch
    add comment

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215574 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/FlattenCFG.cpp
test/Transforms/Util/flattencfg.ll [new file with mode: 0644]