diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-02-17 15:02:07 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-02-17 15:02:07 +0000 |
commit | de697d4d404f7e925ace5f56ecf5d727af4c1c0c (patch) | |
tree | d6251f9903d079d179860af818e58e964745c7f3 /llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp | |
parent | 43bd887090782dbf6b6e83a2a277031f54446ea6 (diff) | |
download | bcm5719-llvm-de697d4d404f7e925ace5f56ecf5d727af4c1c0c.tar.gz bcm5719-llvm-de697d4d404f7e925ace5f56ecf5d727af4c1c0c.zip |
[Hexagon] Fold object construction into map::insert
llvm-svn: 261096
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp b/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp index 42c94091b9e..5294266d35f 100644 --- a/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp +++ b/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp @@ -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'); |