aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/LiveIntervalAnalysis.h
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2013-02-20 06:46:36 +0000
committerCameron Zwarich <zwarich@apple.com>2013-02-20 06:46:36 +0000
commitfd0f93fa1da8cecdcfef5b12da367708ef55a343 (patch)
treefe532f5103f41c6fc1f3e04a398388b625113f9a /include/llvm/CodeGen/LiveIntervalAnalysis.h
parent767e04307f70cad9e2ba46b3812504ee1d8c1721 (diff)
downloadexternal_llvm-fd0f93fa1da8cecdcfef5b12da367708ef55a343.zip
external_llvm-fd0f93fa1da8cecdcfef5b12da367708ef55a343.tar.gz
external_llvm-fd0f93fa1da8cecdcfef5b12da367708ef55a343.tar.bz2
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/LiveIntervalAnalysis.h')
-rw-r--r--include/llvm/CodeGen/LiveIntervalAnalysis.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h
index c0de49e..4632368 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) {