[clang] e7eadbd - [ARCMigrate] Modernize PoolVarInfo (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 27 09:24:37 PDT 2023
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;
More information about the cfe-commits
mailing list