diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-28 18:21:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-28 18:21:51 +0000 |
commit | c4aacac056168b9e2bdd52f1befa06a01c22c65e (patch) | |
tree | 571ea71bdf579d6b4d8d883c40d25723bff85e4d /include/llvm/CodeGen | |
parent | 5f8d61bbd87ffa6ad5ed2e78c304f7f126a67164 (diff) | |
download | llvm-c4aacac056168b9e2bdd52f1befa06a01c22c65e.tar.gz llvm-c4aacac056168b9e2bdd52f1befa06a01c22c65e.tar.bz2 llvm-c4aacac056168b9e2bdd52f1befa06a01c22c65e.tar.xz |
add an assertion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31272 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/MachineJumpTableInfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineJumpTableInfo.h b/include/llvm/CodeGen/MachineJumpTableInfo.h index 2d640a7cb1..aa2981c4bb 100644 --- a/include/llvm/CodeGen/MachineJumpTableInfo.h +++ b/include/llvm/CodeGen/MachineJumpTableInfo.h @@ -64,6 +64,7 @@ public: /// 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]; |