mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Add a check to make sure we don't assign slot indexes for instructions inside bundles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150564 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
79bf288584
commit
ac597ecfbc
@ -648,6 +648,8 @@ namespace llvm {
|
||||
/// instructions, create the new index after the null indexes instead of
|
||||
/// before them.
|
||||
SlotIndex insertMachineInstrInMaps(MachineInstr *mi, bool Late = false) {
|
||||
assert(!mi->isInsideBundle() &&
|
||||
"Instructions inside bundles should use bundle start's slot.");
|
||||
assert(mi2iMap.find(mi) == mi2iMap.end() && "Instr already indexed.");
|
||||
// Numbering DBG_VALUE instructions could cause code generation to be
|
||||
// affected by debug information.
|
||||
|
Loading…
x
Reference in New Issue
Block a user