File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -136,10 +136,7 @@ template <typename IRUnitT, typename... ExtraArgTs>
136136inline  typename  AnalysisManager<IRUnitT, ExtraArgTs...>::ResultConceptT &
137137AnalysisManager<IRUnitT, ExtraArgTs...>::getResultImpl(
138138    AnalysisKey *ID, IRUnitT &IR, ExtraArgTs... ExtraArgs) {
139-   typename  AnalysisResultMapT::iterator RI;
140-   bool  Inserted;
141-   std::tie (RI, Inserted) = AnalysisResults.insert (std::make_pair (
142-       std::make_pair (ID, &IR), typename  AnalysisResultListT::iterator ()));
139+   auto  [RI, Inserted] = AnalysisResults.try_emplace (std::make_pair (ID, &IR));
143140
144141  //  If we don't have a cached result for this function, look up the pass and
145142  //  run it to produce a result, which we then add to the cache.
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments