diff options
| author | Cameron Zwarich <zwarich@apple.com> | 2013-02-20 06:46:36 +0000 |
|---|---|---|
| committer | Cameron Zwarich <zwarich@apple.com> | 2013-02-20 06:46:36 +0000 |
| commit | 11e8d50891f6742597b06450e831b0f03ac4ce04 (patch) | |
| tree | af7cee88ffe5a1f4136801edb479b68c3cb79349 /llvm/include | |
| parent | 3673581de90a0aef72fe717c48f5cf5785473c59 (diff) | |
| download | bcm5719-llvm-11e8d50891f6742597b06450e831b0f03ac4ce04.tar.gz bcm5719-llvm-11e8d50891f6742597b06450e831b0f03ac4ce04.zip | |
Fix a misunderstanding about how RegMaskBlocks works. This was caught by
assertions in the register allocator when running 'make check' without
LiveVariables.
llvm-svn: 175599
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h b/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h index c0de49e52ab..46323681577 100644 --- a/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -218,7 +218,7 @@ namespace llvm { Indexes->insertMBBInMaps(MBB); assert(unsigned(MBB->getNumber()) == RegMaskBlocks.size() && "Blocks must be added in order."); - RegMaskBlocks.push_back(std::make_pair(MBB->getNumber(), 0)); + RegMaskBlocks.push_back(std::make_pair(RegMaskSlots.size(), 0)); } SlotIndex InsertMachineInstrInMaps(MachineInstr *MI) { |

