r206985 - Minor formatting and simplification cleanup -- no functional changes intended.

Aaron Ballman aaron at aaronballman.com
Wed Apr 23 07:22:06 PDT 2014


Author: aaronballman
Date: Wed Apr 23 09:22:06 2014
New Revision: 206985

URL: http://llvm.org/viewvc/llvm-project?rev=206985&view=rev
Log:
Minor formatting and simplification cleanup -- no functional changes intended.

Modified:
    cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h

Modified: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h?rev=206985&r1=206984&r2=206985&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h (original)
+++ cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h Wed Apr 23 09:22:06 2014
@@ -726,16 +726,14 @@ protected:
 
   void printPhi(Phi *E, StreamType &SS) {
     SS << "phi(";
-    unsigned i = 0;
-    if (E->status() == Phi::PH_SingleVal) {
+    if (E->status() == Phi::PH_SingleVal)
       self()->printSExpr(E->values()[0], SS, Prec_MAX);
-    }
     else {
+      unsigned i = 0;
       for (auto V : E->values()) {
-        if (i > 0)
+        if (i++ > 0)
           SS << ", ";
         self()->printSExpr(V, SS, Prec_MAX);
-        ++i;
       }
     }
     SS << ")";





More information about the cfe-commits mailing list