Fix typo in LoopSimplifyCFG

llvm-svn: 259261
This commit is contained in:
Fiona Glaser 2016-01-29 23:12:52 +00:00
parent 7f5b2d0ac8
commit 36e8230db0
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ static bool simplifyLoopCFG(Loop *L, DominatorTree *DT, LoopInfo *LI) {
for (auto &Block : Blocks) {
// Attempt to merge blocks in the trivial case. Don't modify blocks which
// belong to other loops.
BasicBlock *Succ = cast<BasicBlock>(Block);
BasicBlock *Succ = cast_or_null<BasicBlock>(Block);
if (!Succ)
continue;