[clang] abed823 - [Sema] Modernize UsageInfo (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 20 22:08:10 PDT 2023
Author: Kazu Hirata
Date: 2023-08-20T22:07:58-07:00
New Revision: abed823dfe6b2cc337f5d20109b519db901e09af
URL: https://github.com/llvm/llvm-project/commit/abed823dfe6b2cc337f5d20109b519db901e09af
DIFF: https://github.com/llvm/llvm-project/commit/abed823dfe6b2cc337f5d20109b519db901e09af.diff
LOG: [Sema] Modernize UsageInfo (NFC)
Added:
Modified:
clang/lib/Sema/SemaChecking.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 9f8b0ab928e84b..660c0b55df892d 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -15906,9 +15906,9 @@ class SequenceChecker : public ConstEvaluatedExprVisitor<SequenceChecker> {
Usage Uses[UK_Count];
/// Have we issued a diagnostic for this object already?
- bool Diagnosed;
+ bool Diagnosed = false;
- UsageInfo() : Diagnosed(false) {}
+ UsageInfo() = default;
};
using UsageInfoMap = llvm::SmallDenseMap<Object, UsageInfo, 16>;
More information about the cfe-commits
mailing list