summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/CodeGen/CGException.cpp2
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
-rw-r--r--clang/lib/CodeGen/CodeGenPGO.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index 26e061d41ab..5acb4537f3d 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/lib/CodeGen/CGException.cpp
@@ -1294,7 +1294,7 @@ void CodeGenFunction::ExitCXXTryStmt(const CXXTryStmt &S, bool IsFnTryBlock) {
// 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);
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 9c108e93750..940022bdddc 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -2660,7 +2660,7 @@ EmitConditionalOperatorLValue(const AbstractConditionalOperator *expr) {
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);
diff --git a/clang/lib/CodeGen/CodeGenPGO.cpp b/clang/lib/CodeGen/CodeGenPGO.cpp
index d1b57d80c35..c1a45be115e 100644
--- a/clang/lib/CodeGen/CodeGenPGO.cpp
+++ b/clang/lib/CodeGen/CodeGenPGO.cpp
@@ -234,12 +234,12 @@ namespace {
}
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());
OpenPOWER on IntegriCloud