[llvm-commits] [llvm] r130688 - /llvm/trunk/include/llvm/CodeGen/SlotIndexes.h

Chandler Carruth chandlerc at gmail.com
Sun May 1 22:49:01 PDT 2011


Author: chandlerc
Date: Mon May  2 00:49:01 2011
New Revision: 130688

URL: http://llvm.org/viewvc/llvm-project?rev=130688&view=rev
Log:
Remove an unused variable in NDEBUG (found with -Wunused-variable).

Modified:
    llvm/trunk/include/llvm/CodeGen/SlotIndexes.h

Modified: llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SlotIndexes.h?rev=130688&r1=130687&r2=130688&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SlotIndexes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SlotIndexes.h Mon May  2 00:49:01 2011
@@ -647,9 +647,7 @@
       // affected by debug information.
       assert(!mi->isDebugValue() && "Cannot number DBG_VALUE instructions.");
 
-      MachineBasicBlock *mbb = mi->getParent();
-
-      assert(mbb != 0 && "Instr must be added to function.");
+      assert(mi->getParent() != 0 && "Instr must be added to function.");
 
       // Get the entries where mi should be inserted.
       IndexListEntry *prevEntry, *nextEntry;





More information about the llvm-commits mailing list