summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-07-22 21:56:14 +0000
committerDavid Greene <greened@obbligato.org>2009-07-22 21:56:14 +0000
commite88680e33e52b511ec26408803bca8f3cd3597e8 (patch)
treeb63bf613898e6e981cf73d4d5990f13065b48d95 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parentb8725e2099fa94e487ef6dcc6f47602f319d1202 (diff)
downloadbcm5719-llvm-e88680e33e52b511ec26408803bca8f3cd3597e8.tar.gz
bcm5719-llvm-e88680e33e52b511ec26408803bca8f3cd3597e8.zip
Constify the key in Mi2IndexMap.
llvm-svn: 76801
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 261fa5e0f86..ee072115df3 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -464,7 +464,7 @@ void LiveIntervals::scaleNumbering(int factor) {
i2miMap_.resize(highestSlot + 1);
for (Mi2IndexMap::iterator MI = mi2iMap_.begin(), ME = mi2iMap_.end();
MI != ME; ++MI) {
- i2miMap_[MI->second] = MI->first;
+ i2miMap_[MI->second] = const_cast<MachineInstr *>(MI->first);
}
}
OpenPOWER on IntegriCloud