forked from OSchip/llvm-project
CodeGen: Remove implicit iterator to pointer conversions, NFC
Remove a couple of implicit conversions from MachineInstrBundleIterator to MachineInstr*. llvm-svn: 262116
This commit is contained in:
parent
3ac9cc6156
commit
b6bb889dfd
|
@ -455,7 +455,7 @@ namespace llvm {
|
|||
if (I == B)
|
||||
return getMBBStartIdx(MBB);
|
||||
--I;
|
||||
Mi2IndexMap::const_iterator MapItr = mi2iMap.find(I);
|
||||
Mi2IndexMap::const_iterator MapItr = mi2iMap.find(&*I);
|
||||
if (MapItr != mi2iMap.end())
|
||||
return MapItr->second;
|
||||
}
|
||||
|
@ -472,7 +472,7 @@ namespace llvm {
|
|||
++I;
|
||||
if (I == E)
|
||||
return getMBBEndIdx(MBB);
|
||||
Mi2IndexMap::const_iterator MapItr = mi2iMap.find(I);
|
||||
Mi2IndexMap::const_iterator MapItr = mi2iMap.find(&*I);
|
||||
if (MapItr != mi2iMap.end())
|
||||
return MapItr->second;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue