OSDN Git Service

Remove dead code.
authorVladimir Prus <ghost@cs.msu.su>
Thu, 8 Jun 2006 16:03:13 +0000 (16:03 +0000)
committerVladimir Prus <ghost@cs.msu.su>
Thu, 8 Jun 2006 16:03:13 +0000 (16:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28725 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/BasicBlock.cpp

index c93f558..18a90d6 100644 (file)
@@ -123,7 +123,7 @@ const TerminatorInst *const BasicBlock::getTerminator() const {
 
 Instruction* BasicBlock::getFirstNonPHI()
 {
-    BasicBlock::iterator i = begin(), e = end();
+    BasicBlock::iterator i = begin();
     // All valid basic blocks should have a terminator,
     // which is not a PHINode. If we have invalid basic
     // block we'll get assert when dereferencing past-the-end