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 | fd0f93fa1da8cecdcfef5b12da367708ef55a343 (patch) | |
tree | fe532f5103f41c6fc1f3e04a398388b625113f9a /include/llvm/CodeGen | |
parent | 767e04307f70cad9e2ba46b3812504ee1d8c1721 (diff) |
Fix a misunderstanding about how RegMaskBlocks works. This was caught by
assertions in the register allocator when running 'make check' without
LiveVariables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index c0de49e52a..4632368157 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/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) { |