commit | 7b04db41721529da6367c37f2a8de20894f17869 | [log] [tgz] |
---|---|---|
author | David Greene <greened@obbligato.org> | Wed Jul 22 21:56:14 2009 +0000 |
committer | David Greene <greened@obbligato.org> | Wed Jul 22 21:56:14 2009 +0000 |
tree | 4c0aa0ba5bfe8e2daabd08e9558f8f8133e114a1 | |
parent | 474088a63f84f19eed2687c74605de0f70c99469 [diff] [blame] |
Constify the key in Mi2IndexMap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76801 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 261fa5e..ee07211 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -464,7 +464,7 @@ 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); } }