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

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 00:47:05 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;
----------------
jh7370 wrote:

IIRC, prior to C++17, possibly even prior C++14, with at least some compilers (I ran into this with GCC, I believe, but not MSVC), you couldn't have vectors of incomplete types, so that would be why.

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


More information about the llvm-commits mailing list