mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
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
13c519204e
commit
be21e15f72
@ -455,7 +455,7 @@ namespace llvm {
|
|||||||
if (I == B)
|
if (I == B)
|
||||||
return getMBBStartIdx(MBB);
|
return getMBBStartIdx(MBB);
|
||||||
--I;
|
--I;
|
||||||
Mi2IndexMap::const_iterator MapItr = mi2iMap.find(I);
|
Mi2IndexMap::const_iterator MapItr = mi2iMap.find(&*I);
|
||||||
if (MapItr != mi2iMap.end())
|
if (MapItr != mi2iMap.end())
|
||||||
return MapItr->second;
|
return MapItr->second;
|
||||||
}
|
}
|
||||||
@ -472,7 +472,7 @@ namespace llvm {
|
|||||||
++I;
|
++I;
|
||||||
if (I == E)
|
if (I == E)
|
||||||
return getMBBEndIdx(MBB);
|
return getMBBEndIdx(MBB);
|
||||||
Mi2IndexMap::const_iterator MapItr = mi2iMap.find(I);
|
Mi2IndexMap::const_iterator MapItr = mi2iMap.find(&*I);
|
||||||
if (MapItr != mi2iMap.end())
|
if (MapItr != mi2iMap.end())
|
||||||
return MapItr->second;
|
return MapItr->second;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user