diff options
| author | Justin Lebar <jlebar@google.com> | 2016-12-03 19:49:27 +0000 |
|---|---|---|
| committer | Justin Lebar <jlebar@google.com> | 2016-12-03 19:49:27 +0000 |
| commit | cea78db7f054a4cf9792dba1ed0f27c11411c7ce (patch) | |
| tree | 80d2fced2aa99117bb4d6c39f1c4c877c56635f0 | |
| parent | 64631f5d3bb5141f1c5c3b43a3e0d46e9fa5c33c (diff) | |
| download | bcm5719-llvm-cea78db7f054a4cf9792dba1ed0f27c11411c7ce.tar.gz bcm5719-llvm-cea78db7f054a4cf9792dba1ed0f27c11411c7ce.zip | |
[PM] Consistently use curly braces rather than std::make_pair in AnalysisResults.find().
Reviewers: chandlerc
Subscribers: silvas, llvm-commits, mehdi_amini
Differential Revision: https://reviews.llvm.org/D27372
llvm-svn: 288596
| -rw-r--r-- | llvm/include/llvm/IR/PassManager.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/IR/PassManager.h b/llvm/include/llvm/IR/PassManager.h index b7e60471700..ccc35d0194a 100644 --- a/llvm/include/llvm/IR/PassManager.h +++ b/llvm/include/llvm/IR/PassManager.h @@ -477,7 +477,7 @@ public: return; // Clear the map pointing into the results list. for (auto &IDAndResult : ResultsListI->second) - AnalysisResults.erase(std::make_pair(IDAndResult.first, &IR)); + AnalysisResults.erase({IDAndResult.first, &IR}); // And actually destroy and erase the results associated with this IR. AnalysisResultLists.erase(ResultsListI); @@ -676,7 +676,7 @@ private: // P.run may have inserted elements into AnalysisResults and invalidated // RI. - RI = AnalysisResults.find(std::make_pair(ID, &IR)); + RI = AnalysisResults.find({ID, &IR}); assert(RI != AnalysisResults.end() && "we just inserted it!"); RI->second = std::prev(ResultList.end()); @@ -688,14 +688,14 @@ private: /// \brief Get a cached analysis result or return null. ResultConceptT *getCachedResultImpl(AnalysisKey *ID, IRUnitT &IR) const { typename AnalysisResultMapT::const_iterator RI = - AnalysisResults.find(std::make_pair(ID, &IR)); + AnalysisResults.find({ID, &IR}); return RI == AnalysisResults.end() ? nullptr : &*RI->second->second; } /// \brief Invalidate a function pass result. void invalidateImpl(AnalysisKey *ID, IRUnitT &IR) { typename AnalysisResultMapT::iterator RI = - AnalysisResults.find(std::make_pair(ID, &IR)); + AnalysisResults.find({ID, &IR}); if (RI == AnalysisResults.end()) return; |

