Author: Kazu Hirata Date: 2023-08-27T16:13:50-07:00 New Revision: e47189bfa9f2e08541c58d818a9da85d5c02f436
URL: https://github.com/llvm/llvm-project/commit/e47189bfa9f2e08541c58d818a9da85d5c02f436 DIFF: https://github.com/llvm/llvm-project/commit/e47189bfa9f2e08541c58d818a9da85d5c02f436.diff LOG: [CodeGen] Modernize BreakContinue (NFC) Added: Modified: clang/lib/CodeGen/CodeGenPGO.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/CodeGenPGO.cpp b/clang/lib/CodeGen/CodeGenPGO.cpp index b80317529b72b6..df6c76cde95f8d 100644 --- a/clang/lib/CodeGen/CodeGenPGO.cpp +++ b/clang/lib/CodeGen/CodeGenPGO.cpp @@ -376,9 +376,9 @@ struct ComputeRegionCounts : public ConstStmtVisitor<ComputeRegionCounts> { /// BreakContinueStack - Keep counts of breaks and continues inside loops. struct BreakContinue { - uint64_t BreakCount; - uint64_t ContinueCount; - BreakContinue() : BreakCount(0), ContinueCount(0) {} + uint64_t BreakCount = 0; + uint64_t ContinueCount = 0; + BreakContinue() = default; }; SmallVector<BreakContinue, 8> BreakContinueStack; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits