diff options
author | David Greene <greened@obbligato.org> | 2009-07-22 21:56:14 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-07-22 21:56:14 +0000 |
commit | e88680e33e52b511ec26408803bca8f3cd3597e8 (patch) | |
tree | b63bf613898e6e981cf73d4d5990f13065b48d95 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | b8725e2099fa94e487ef6dcc6f47602f319d1202 (diff) | |
download | bcm5719-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.cpp | 2 |
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); } } |