forked from OSchip/llvm-project
[Hexagon] Replace use of "std::map::emplace" with "insert"
Gcc 4.7.2-4 does not seem to have "emplace" in its implementation of map. This should fix the build failure on polly-amd64-linux. llvm-svn: 260816
This commit is contained in:
parent
0772c42385
commit
280a50ebb9
|
@ -1762,7 +1762,10 @@ void HexagonFrameLowering::optimizeSpillSlots(MachineFunction &MF,
|
|||
// and collect relevant information.
|
||||
for (auto &B : MF) {
|
||||
std::map<int,IndexType> LastStore, LastLoad;
|
||||
auto P = BlockIndexes.emplace(&B, HexagonBlockRanges::InstrIndexMap(B));
|
||||
// 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 &IndexMap = P.first->second;
|
||||
DEBUG(dbgs() << "Index map for BB#" << B.getNumber() << "\n"
|
||||
<< IndexMap << '\n');
|
||||
|
|
Loading…
Reference in New Issue