summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SlotIndexes.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-05-02 05:49:01 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-05-02 05:49:01 +0000
commit79142427a030baad468c90c54b66853e084507d3 (patch)
tree299724bd2040f14aef0d6786e50ef5a92bf20b2d /include/llvm/CodeGen/SlotIndexes.h
parentbb30dd40ed0873e39fec4dfa321091a0c8d1abfc (diff)
downloadllvm-79142427a030baad468c90c54b66853e084507d3.tar.gz
llvm-79142427a030baad468c90c54b66853e084507d3.tar.bz2
llvm-79142427a030baad468c90c54b66853e084507d3.tar.xz
Remove an unused variable in NDEBUG (found with -Wunused-variable).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SlotIndexes.h')
-rw-r--r--include/llvm/CodeGen/SlotIndexes.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/SlotIndexes.h b/include/llvm/CodeGen/SlotIndexes.h
index 7c1aad2b00..33ce675e5c 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;