Changes in directory llvm/include/llvm/CodeGen:

MachineJumpTableInfo.h updated: 1.7 -> 1.8
---
Log message:

add an assertion


---
Diffs of the changes:  (+1 -0)

 MachineJumpTableInfo.h |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h
diff -u llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.7 
llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.8
--- llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.7        Sat Oct 28 
13:17:09 2006
+++ llvm/include/llvm/CodeGen/MachineJumpTableInfo.h    Sat Oct 28 13:21:51 2006
@@ -64,6 +64,7 @@
   /// ReplaceMBBInJumpTables - If Old is the target of any jump tables, update
   /// the jump tables to branch to New instead.
   bool ReplaceMBBInJumpTables(MachineBasicBlock *Old, MachineBasicBlock *New) {
+    assert(Old != New && "Not making a change?");
     bool MadeChange = false;
     for (unsigned i = 0, e = JumpTables.size(); i != e; ++i) {
       MachineJumpTableEntry &JTE = JumpTables[i];



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to