projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f8d61b
)
add an assertion
author
Chris Lattner
<sabre@nondot.org>
Sat, 28 Oct 2006 18:21:51 +0000
(18:21 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 28 Oct 2006 18:21:51 +0000
(18:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31272
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineJumpTableInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineJumpTableInfo.h
b/include/llvm/CodeGen/MachineJumpTableInfo.h
index 2d640a7cb102ddaf3c43f5a0fa070eca2a129a8f..aa2981c4bbd2ba841acbd318ece0d2cd0e407f83 100644
(file)
--- 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];