Skip to content

Commit f6f6f19

Browse files
[CodeGen] Modernize InstrProfStats (NFC)
1 parent 5ab7c28 commit f6f6f19

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

clang/lib/CodeGen/CodeGenModule.h

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,16 +214,14 @@ struct ObjCEntrypoints {
214214

215215
/// This class records statistics on instrumentation based profiling.
216216
class InstrProfStats {
217-
uint32_t VisitedInMainFile;
218-
uint32_t MissingInMainFile;
219-
uint32_t Visited;
220-
uint32_t Missing;
221-
uint32_t Mismatched;
217+
uint32_t VisitedInMainFile = 0;
218+
uint32_t MissingInMainFile = 0;
219+
uint32_t Visited = 0;
220+
uint32_t Missing = 0;
221+
uint32_t Mismatched = 0;
222222

223223
public:
224-
InstrProfStats()
225-
: VisitedInMainFile(0), MissingInMainFile(0), Visited(0), Missing(0),
226-
Mismatched(0) {}
224+
InstrProfStats() = default;
227225
/// Record that we've visited a function and whether or not that function was
228226
/// in the main source file.
229227
void addVisited(bool MainFile) {

0 commit comments

Comments
 (0)