Author: Kazu Hirata Date: 2023-08-27T09:24:23-07:00 New Revision: e7eadbd04d32ce5699b1e32114929a68529b56be
URL: https://github.com/llvm/llvm-project/commit/e7eadbd04d32ce5699b1e32114929a68529b56be DIFF: https://github.com/llvm/llvm-project/commit/e7eadbd04d32ce5699b1e32114929a68529b56be.diff LOG: [ARCMigrate] Modernize PoolVarInfo (NFC) Added: Modified: clang/lib/ARCMigrate/TransAutoreleasePool.cpp Removed: ################################################################################ diff --git a/clang/lib/ARCMigrate/TransAutoreleasePool.cpp b/clang/lib/ARCMigrate/TransAutoreleasePool.cpp index 47587d81850ab1..6d501228e712b2 100644 --- a/clang/lib/ARCMigrate/TransAutoreleasePool.cpp +++ b/clang/lib/ARCMigrate/TransAutoreleasePool.cpp @@ -417,11 +417,11 @@ class AutoreleasePoolRewriter Selector DrainSel; struct PoolVarInfo { - DeclStmt *Dcl; + DeclStmt *Dcl = nullptr; ExprSet Refs; SmallVector<PoolScope, 2> Scopes; - PoolVarInfo() : Dcl(nullptr) { } + PoolVarInfo() = default; }; std::map<VarDecl *, PoolVarInfo> PoolVars; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits