diff options
author | Dan Gohman <gohman@apple.com> | 2007-03-22 16:38:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-03-22 16:38:57 +0000 |
commit | ecb7a77885b174cf4d001a9b48533b3979e7810d (patch) | |
tree | ed6b55df739771a7691a200f47883ddde4c45f53 /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 2b48420c642de2fbf68a96d9b0bf45b5379455f3 (diff) |
Change uses of Function::front to Function::getEntryBlock for readability.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 91664bf2d9..1bf72a1076 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -1185,7 +1185,8 @@ bool llvm::SimplifyCFG(BasicBlock *BB) { assert(BB && BB->getParent() && "Block not embedded in function!"); assert(BB->getTerminator() && "Degenerate basic block encountered!"); - assert(&BB->getParent()->front() != BB && "Can't Simplify entry block!"); + assert(&BB->getParent()->getEntryBlock() != BB && + "Can't Simplify entry block!"); // Remove basic blocks that have no predecessors... which are unreachable. if (pred_begin(BB) == pred_end(BB) || |