summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-28 18:21:51 +0000
committerChris Lattner <sabre@nondot.org>2006-10-28 18:21:51 +0000
commitc4aacac056168b9e2bdd52f1befa06a01c22c65e (patch)
tree571ea71bdf579d6b4d8d883c40d25723bff85e4d /include/llvm/CodeGen
parent5f8d61bbd87ffa6ad5ed2e78c304f7f126a67164 (diff)
downloadllvm-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.h1
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];