From: Ramkumar Ramachandra Date: Tue, 13 Jan 2015 04:17:47 +0000 (+0000) Subject: fix {typo, build failure} in r225760 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=181233b2b722fa715cc71e2b5c3acd3f0b91164e;p=platform%2Fupstream%2Fllvm.git fix {typo, build failure} in r225760 llvm-svn: 225762 --- diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index c8b6705..f6867c2 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -4587,7 +4587,7 @@ bool SimplifyCFGOpt::run(BasicBlock *BB) { // Remove basic blocks that have no predecessors (except the entry block)... // or that just have themself as a predecessor. These are unreachable. - if ((pred_emtpy(BB) && + if ((pred_empty(BB) && BB != &BB->getParent()->getEntryBlock()) || BB->getSinglePredecessor() == BB) { DEBUG(dbgs() << "Removing BB: \n" << *BB);