diff options
| author | Richard Trieu <rtrieu@google.com> | 2016-02-18 22:34:54 +0000 |
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2016-02-18 22:34:54 +0000 |
| commit | cc3949d99af2b2ea2f31c1694eeef7cea0f484f0 (patch) | |
| tree | 7b6a787cb2352bf0f9ced314eaff8aad71618459 /clang/lib/CodeGen | |
| parent | 7a08381403b54cd8998f3c922f18b65867e3c07c (diff) | |
| download | bcm5719-llvm-cc3949d99af2b2ea2f31c1694eeef7cea0f484f0.tar.gz bcm5719-llvm-cc3949d99af2b2ea2f31c1694eeef7cea0f484f0.zip | |
Remove use of builtin comma operator.
Cleanup for upcoming Clang warning -Wcomma. No functionality change intended.
llvm-svn: 261271
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGOpenMPRuntime.cpp | 19 | ||||
| -rw-r--r-- | clang/lib/CodeGen/CGStmtOpenMP.cpp | 19 |
2 files changed, 27 insertions, 11 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp index bbcd3a64df2..4637c7b7711 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp @@ -2760,7 +2760,8 @@ void CGOpenMPRuntime::emitTaskCall( PrivateHelpersTy( VD, cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()), cast<VarDecl>(cast<DeclRefExpr>(*IElemInitRef)->getDecl())))); - ++I, ++IElemInitRef; + ++I; + ++IElemInitRef; } llvm::array_pod_sort(Privates.begin(), Privates.end(), array_pod_sort_comparator); @@ -3259,7 +3260,9 @@ static llvm::Value *emitReductionFunction(CodeGenModule &CGM, } else // Emit reduction for array subscript or single variable. CGF.EmitIgnoredExpr(E); - ++IPriv, ++ILHS, ++IRHS; + ++IPriv; + ++ILHS; + ++IRHS; } Scope.ForceCleanup(); CGF.FinishFunction(); @@ -3326,7 +3329,9 @@ void CGOpenMPRuntime::emitReduction(CodeGenFunction &CGF, SourceLocation Loc, const Expr *) { CGF.EmitIgnoredExpr(E); }); } else CGF.EmitIgnoredExpr(E); - ++IPriv, ++ILHS, ++IRHS; + ++IPriv; + ++ILHS; + ++IRHS; } return; } @@ -3444,7 +3449,9 @@ void CGOpenMPRuntime::emitReduction(CodeGenFunction &CGF, SourceLocation Loc, } else // Emit reduction for array subscript or single variable. CGF.EmitIgnoredExpr(E); - ++IPriv, ++ILHS, ++IRHS; + ++IPriv; + ++ILHS; + ++IRHS; } } @@ -3553,7 +3560,9 @@ void CGOpenMPRuntime::emitReduction(CodeGenFunction &CGF, SourceLocation Loc, } else CritRedGen(CGF, nullptr, nullptr, nullptr); } - ++ILHS, ++IRHS, ++IPriv; + ++ILHS; + ++IRHS; + ++IPriv; } } diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp index a4bc354ddb6..9ccac258ee0 100644 --- a/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp @@ -201,7 +201,8 @@ CodeGenFunction::GenerateOpenMPCapturedStmtFunction(const CapturedStmt &S) { // use the value that we get from the arguments. if (I->capturesVariableByCopy() && FD->getType()->isAnyPointerType()) { setAddrOfLocalVar(I->getCapturedVar(), GetAddrOfLocalVar(Args[Cnt])); - ++Cnt, ++I; + ++Cnt; + ++I; continue; } @@ -242,7 +243,8 @@ CodeGenFunction::GenerateOpenMPCapturedStmtFunction(const CapturedStmt &S) { CXXThisValue = EmitLoadOfLValue(ArgLVal, Args[Cnt]->getLocation()).getScalarVal(); } - ++Cnt, ++I; + ++Cnt; + ++I; } PGO.assignRegionCounters(GlobalDecl(CD), F); @@ -489,7 +491,8 @@ bool CodeGenFunction::EmitOMPFirstprivateClause(const OMPExecutableDirective &D, // Silence the warning about unused variable. (void)IsRegistered; } - ++IRef, ++InitsRef; + ++IRef; + ++InitsRef; } } return FirstprivateIsLastprivate && !EmittedAsFirstprivate.empty(); @@ -628,7 +631,8 @@ bool CodeGenFunction::EmitOMPLastprivateClauseInit( (void)IsRegistered; } } - ++IRef, ++IDestRef; + ++IRef; + ++IDestRef; } } return HasAtLeastOneLastprivate; @@ -917,7 +921,9 @@ void CodeGenFunction::EmitOMPReductionClauseInit( }); } } - ++ILHS, ++IRHS, ++IPriv; + ++ILHS; + ++IRHS; + ++IPriv; } } } @@ -2013,7 +2019,8 @@ void CodeGenFunction::EmitOMPTaskDirective(const OMPTaskDirective &S) { FirstprivateCopies.push_back(IInit); FirstprivateInits.push_back(*IElemInitRef); } - ++IRef, ++IElemInitRef; + ++IRef; + ++IElemInitRef; } } // Build list of dependences. |

