summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorFiona Glaser <escha@apple.com>2016-01-29 23:12:52 +0000
committerFiona Glaser <escha@apple.com>2016-01-29 23:12:52 +0000
commit36e8230db01f1697908870cdedd903a2571ddd12 (patch)
tree4a06833bd2b81de0df11f3fc22f6a8b2a2d9c5fb /llvm/lib
parent7f5b2d0ac88e93ff581764b0892c72c1ce6e967d (diff)
downloadbcm5719-llvm-36e8230db01f1697908870cdedd903a2571ddd12.tar.gz
bcm5719-llvm-36e8230db01f1697908870cdedd903a2571ddd12.zip
Fix typo in LoopSimplifyCFG
llvm-svn: 259261
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp b/llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp
index 8e066acced1..b5fdae94c49 100644
--- a/llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp
@@ -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;
OpenPOWER on IntegriCloud