mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
add an assertion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31272 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5f8d61bbd8
commit
c4aacac056
@ -64,6 +64,7 @@ public:
|
|||||||
/// ReplaceMBBInJumpTables - If Old is the target of any jump tables, update
|
/// ReplaceMBBInJumpTables - If Old is the target of any jump tables, update
|
||||||
/// the jump tables to branch to New instead.
|
/// the jump tables to branch to New instead.
|
||||||
bool ReplaceMBBInJumpTables(MachineBasicBlock *Old, MachineBasicBlock *New) {
|
bool ReplaceMBBInJumpTables(MachineBasicBlock *Old, MachineBasicBlock *New) {
|
||||||
|
assert(Old != New && "Not making a change?");
|
||||||
bool MadeChange = false;
|
bool MadeChange = false;
|
||||||
for (unsigned i = 0, e = JumpTables.size(); i != e; ++i) {
|
for (unsigned i = 0, e = JumpTables.size(); i != e; ++i) {
|
||||||
MachineJumpTableEntry &JTE = JumpTables[i];
|
MachineJumpTableEntry &JTE = JumpTables[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user