// Initialize the catch variable and set up the cleanups.
BeginCatch(*this, C);
- // Emit the PGO counter increment
+ // Emit the PGO counter increment.
RegionCounter CatchCnt = getPGORegionCounter(C);
CatchCnt.beginRegion(Builder);
if (!CondExprBool) std::swap(live, dead);
if (!ContainsLabel(dead)) {
- // If the true case is live, we need to track its region
+ // If the true case is live, we need to track its region.
if (CondExprBool)
Cnt.beginRegion(Builder);
return EmitLValue(live);
}
void VisitStmt(const Stmt *S) { VisitChildren(S); }
- /// Assign a counter to track entry to the function body
+ /// Assign a counter to track entry to the function body.
void VisitFunctionDecl(const FunctionDecl *S) {
(*CounterMap)[S->getBody()] = NextCounter++;
Visit(S->getBody());
}
- /// Assign a counter to track the block following a label
+ /// Assign a counter to track the block following a label.
void VisitLabelStmt(const LabelStmt *S) {
(*CounterMap)[S] = NextCounter++;
Visit(S->getSubStmt());