blockfreq: Use a std::list for Loops
[oota-llvm.git] / lib / Analysis / BlockFrequencyInfoImpl.cpp
index 29a4117c1300d028725326bfa8d45e9a37b06ebd..42c674983c40944385ae0a531fa5c2ec54e8abe7 100644 (file)
@@ -602,7 +602,7 @@ void BlockFrequencyInfoImplBase::clear() {
   // does not actually clear heap storage.
   std::vector<FrequencyData>().swap(Freqs);
   std::vector<WorkingData>().swap(Working);
-  std::vector<std::unique_ptr<LoopData>>().swap(Loops);
+  Loops.clear();
 }
 
 /// \brief Clear all memory not needed downstream.