llvm.org GIT mirror llvm / 712fa7e
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260816 91177308-0d34-0410-b5e6-96231b3b80d8 Krzysztof Parzyszek 4 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
17611761 // and collect relevant information.
17621762 for (auto &B : MF) {
17631763 std::map LastStore, LastLoad;
1764 auto P = BlockIndexes.emplace(&B, HexagonBlockRanges::InstrIndexMap(B));
1764 // Emplace appears not to be supported in gcc 4.7.2-4.
1765 //auto P = BlockIndexes.emplace(&B, HexagonBlockRanges::InstrIndexMap(B));
1766 auto TmpP = std::make_pair(&B, HexagonBlockRanges::InstrIndexMap(B));
1767 auto P = BlockIndexes.insert(TmpP);
17651768 auto &IndexMap = P.first->second;
17661769 DEBUG(dbgs() << "Index map for BB#" << B.getNumber() << "\n"
17671770 << IndexMap << '\n');