diff options
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 4fc08ec6b9..cdcebfcc7e 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -96,7 +96,7 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) { unsigned miIndex = 0; for (MachineFunction::iterator mbb = mf_->begin(), mbbEnd = mf_->end(); mbb != mbbEnd; ++mbb) { - unsigned mbbIdx = lv_->getMachineBasicBlockIndex(mbb); + unsigned mbbIdx = mbb->getNumber(); bool inserted = mbbi2mbbMap_.insert(std::make_pair(mbbIdx, mbb)).second; assert(inserted && "multiple index -> MachineBasicBlock"); |