mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 22:30:33 +00:00
[Hexagon] Fold object construction into map::insert
llvm-svn: 261096
This commit is contained in:
parent
8d76fd1d94
commit
cacffaaf70
@ -1764,8 +1764,8 @@ void HexagonFrameLowering::optimizeSpillSlots(MachineFunction &MF,
|
||||
std::map<int,IndexType> LastStore, LastLoad;
|
||||
// Emplace appears not to be supported in gcc 4.7.2-4.
|
||||
//auto P = BlockIndexes.emplace(&B, HexagonBlockRanges::InstrIndexMap(B));
|
||||
auto TmpP = std::make_pair(&B, HexagonBlockRanges::InstrIndexMap(B));
|
||||
auto P = BlockIndexes.insert(TmpP);
|
||||
auto P = BlockIndexes.insert(
|
||||
std::make_pair(&B, HexagonBlockRanges::InstrIndexMap(B)));
|
||||
auto &IndexMap = P.first->second;
|
||||
DEBUG(dbgs() << "Index map for BB#" << B.getNumber() << "\n"
|
||||
<< IndexMap << '\n');
|
||||
|
Loading…
Reference in New Issue
Block a user