[llvm] [FileCheck] Remove unneeded unique_ptr. NFC. (PR #123216)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 09:20:55 PST 2025


================
@@ -180,8 +180,7 @@ struct FileCheckString;
 class FileCheck {
   FileCheckRequest Req;
   std::unique_ptr<FileCheckPatternContext> PatternContext;
-  // C++17 TODO: make this a plain std::vector.
-  std::unique_ptr<std::vector<FileCheckString>> CheckStrings;
+  std::vector<FileCheckString> CheckStrings;
----------------
jayfoad wrote:

Interesting. But that code should be using std::move instead of std::swap. I can feel another patch coming on...

https://github.com/llvm/llvm-project/pull/123216


More information about the llvm-commits mailing list