]> granicus.if.org Git - clang/commitdiff
Fix -Wpedantic about extra semicolons in CGStmtOpenMP.cpp
authorHans Wennborg <hans@hanshq.net>
Thu, 27 Apr 2017 17:02:25 +0000 (17:02 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 27 Apr 2017 17:02:25 +0000 (17:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301564 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGStmtOpenMP.cpp

index f738dd0750faa2f6d4af326afdf7a14c9fdf3f7b..19b6cbab66c9bd8fa900213e1ebca29dabcd0950 100644 (file)
@@ -1675,7 +1675,7 @@ static void emitOMPLoopBodyWithStopPoint(CodeGenFunction &CGF,
                                          CodeGenFunction::JumpDest LoopExit) {
   CGF.EmitOMPLoopBody(S, LoopExit);
   CGF.EmitStopPoint(&S);
-};
+}
 
 void CodeGenFunction::EmitOMPSimdDirective(const OMPSimdDirective &S) {
   auto &&CodeGen = [&S](CodeGenFunction &CGF, PrePostActionTy &) {
@@ -2093,7 +2093,7 @@ emitDistributeParallelForDispatchBounds(CodeGenFunction &CGF,
   llvm::Value *UBVal = CGF.EmitLoadOfScalar(UB, /*Volatile=*/false, IteratorTy,
                                             SourceLocation());
   return {LBVal, UBVal};
-};
+}
 
 static void emitDistributeParallelForDistributeInnerBoundParams(
     CodeGenFunction &CGF, const OMPExecutableDirective &S,
@@ -2110,7 +2110,7 @@ static void emitDistributeParallelForDistributeInnerBoundParams(
   auto UBCast = CGF.Builder.CreateIntCast(
       CGF.Builder.CreateLoad(UB.getAddress()), CGF.SizeTy, /*isSigned=*/false);
   CapturedVars.push_back(UBCast);
-};
+}
 
 static void
 emitInnerParallelForWhenCombined(CodeGenFunction &CGF,