[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h
Chris Lattner
sabre at nondot.org
Sat Oct 28 11:22:05 PDT 2006
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];
More information about the llvm-commits
mailing list