]> granicus.if.org Git - clang/commitdiff
The style guide prefers preincrement expressions :-)
authorAdrian Prantl <aprantl@apple.com>
Tue, 7 May 2013 22:41:09 +0000 (22:41 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 7 May 2013 22:41:09 +0000 (22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181373 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGStmt.cpp

index 69c02ee23d831bf93f2f9cead20ada364c37fc8e..208455c88c7da6964a8e0c52bb427ecffc0b7a5f 100644 (file)
@@ -841,9 +841,9 @@ void CodeGenFunction::EmitReturnStmt(const ReturnStmt &S) {
     }
   }
 
-  NumReturnExprs += 1;
+  ++NumReturnExprs;
   if (RV == 0 || RV->isEvaluatable(getContext()))
-    NumSimpleReturnExprs += 1;
+    ++NumSimpleReturnExprs;
 
   cleanupScope.ForceCleanup();
   EmitBranchThroughCleanup(ReturnBlock);