summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2bcc808)
raw | patch | inline | side by side (parent: 2bcc808)
author | Ramkumar Ramachandra <artagnon@gmail.com> | |
Tue, 13 Jan 2015 04:17:47 +0000 (04:17 +0000) | ||
committer | Ramkumar Ramachandra <artagnon@gmail.com> | |
Tue, 13 Jan 2015 04:17:47 +0000 (04:17 +0000) |
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225762 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp | patch | blob | history |
index c8b6705ab5eab0747254851153fe4c25929565d5..f6867c24ee58da885da49e31e74a0017e5275728 100644 (file)
// Remove basic blocks that have no predecessors (except the entry block)...
// or that just have themself as a predecessor. These are unreachable.
// 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);
BB != &BB->getParent()->getEntryBlock()) ||
BB->getSinglePredecessor() == BB) {
DEBUG(dbgs() << "Removing BB: \n" << *BB);