Skip to content

Commit bed40e7

Browse files
committed
[NFC]: add a FrontendStatsTracer for definite init
1 parent c879e3f commit bed40e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SILOptimizer/Mandatory/DefiniteInitialization.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3868,6 +3868,9 @@ static void processMemoryObject(MarkUninitializedInst *I,
38683868
/// properly set and transform the code as required for flow-sensitive
38693869
/// properties.
38703870
static bool checkDefiniteInitialization(SILFunction &Fn) {
3871+
FrontendStatsTracer StatsTracer(Fn.getModule().getASTContext().Stats,
3872+
"definite-init", &Fn);
3873+
38713874
LLVM_DEBUG(llvm::dbgs() << "*** Definite Init visiting function: "
38723875
<< Fn.getName() << "\n");
38733876
bool Changed = false;

0 commit comments

Comments
 (0)