From c83eb00361249cd898d65cf7c122bc08d8bcafce Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 2 May 2011 05:49:01 +0000 Subject: [PATCH] Remove an unused variable in NDEBUG (found with -Wunused-variable). llvm-svn: 130688 --- include/llvm/CodeGen/SlotIndexes.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/llvm/CodeGen/SlotIndexes.h b/include/llvm/CodeGen/SlotIndexes.h index 7c1aad2b000..33ce675e5cc 100644 --- a/include/llvm/CodeGen/SlotIndexes.h +++ b/include/llvm/CodeGen/SlotIndexes.h @@ -647,9 +647,7 @@ namespace llvm { // 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;