From cacffaaf70f96e2809bf59ac33a25c178cded0b3 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 17 Feb 2016 15:02:07 +0000 Subject: [PATCH] [Hexagon] Fold object construction into map::insert llvm-svn: 261096 --- lib/Target/Hexagon/HexagonFrameLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/Hexagon/HexagonFrameLowering.cpp b/lib/Target/Hexagon/HexagonFrameLowering.cpp index 42c94091b9e..5294266d35f 100644 --- a/lib/Target/Hexagon/HexagonFrameLowering.cpp +++ b/lib/Target/Hexagon/HexagonFrameLowering.cpp @@ -1764,8 +1764,8 @@ void HexagonFrameLowering::optimizeSpillSlots(MachineFunction &MF, std::map 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');