[llvm] r259261 - Fix typo in LoopSimplifyCFG
Fiona Glaser via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 29 15:12:52 PST 2016
Author: escha
Date: Fri Jan 29 17:12:52 2016
New Revision: 259261
URL: http://llvm.org/viewvc/llvm-project?rev=259261&view=rev
Log:
Fix typo in LoopSimplifyCFG
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopSimplifyCFG.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopSimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopSimplifyCFG.cpp?rev=259261&r1=259260&r2=259261&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopSimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopSimplifyCFG.cpp Fri Jan 29 17:12:52 2016
@@ -80,7 +80,7 @@ static bool simplifyLoopCFG(Loop *L, Dom
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;
More information about the llvm-commits
mailing list