r190305 - Silencing an MSVC warning about an empty control statement (it dislikes ; but is fine with {}).

Aaron Ballman aaron at aaronballman.com
Mon Sep 9 06:29:38 PDT 2013


Author: aaronballman
Date: Mon Sep  9 08:29:38 2013
New Revision: 190305

URL: http://llvm.org/viewvc/llvm-project?rev=190305&view=rev
Log:
Silencing an MSVC warning about an empty control statement (it dislikes ; but is fine with {}).

Modified:
    cfe/trunk/lib/Sema/SemaOpenMP.cpp

Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOpenMP.cpp?rev=190305&r1=190304&r2=190305&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOpenMP.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOpenMP.cpp Mon Sep  9 08:29:38 2013
@@ -531,9 +531,9 @@ public:
       DSAStackTy::DSAVarData DVar = Stack->getTopDSA(VD);
       if (DVar.CKind != OMPC_unknown) {
         if (DKind == OMPD_task && DVar.CKind != OMPC_shared &&
-            DVar.CKind != OMPC_threadprivate && !DVar.RefExpr)
+            DVar.CKind != OMPC_threadprivate && !DVar.RefExpr) {
           // TODO: should be marked as firstprivate.
-          ;
+        }
         return;
       }
       // The default(none) clause requires that each variable that is referenced





More information about the cfe-commits mailing list