Skip to content

Commit 6b9e6f0

Browse files
authored
[Hexagon] Remove emplace workaround (NFC) (#145718)
It was done because it was not supported in gcc 4.7.4.
1 parent 592f203 commit 6b9e6f0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2196,10 +2196,7 @@ void HexagonFrameLowering::optimizeSpillSlots(MachineFunction &MF,
21962196
// and collect relevant information.
21972197
for (auto &B : MF) {
21982198
std::map<int,IndexType> LastStore, LastLoad;
2199-
// Emplace appears not to be supported in gcc 4.7.2-4.
2200-
//auto P = BlockIndexes.emplace(&B, HexagonBlockRanges::InstrIndexMap(B));
2201-
auto P = BlockIndexes.insert(
2202-
std::make_pair(&B, HexagonBlockRanges::InstrIndexMap(B)));
2199+
auto P = BlockIndexes.emplace(&B, HexagonBlockRanges::InstrIndexMap(B));
22032200
auto &IndexMap = P.first->second;
22042201
LLVM_DEBUG(dbgs() << "Index map for " << printMBBReference(B) << "\n"
22052202
<< IndexMap << '\n');

0 commit comments

Comments
 (0)