diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-10-16 00:09:06 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-10-16 00:09:06 +0000 |
commit | 93a38d60be274159aafe32440d768dcd0e9cd2df (patch) | |
tree | 615e024348a0972699ebeae66d2c163a35bdb06e /clang | |
parent | e70c560b6d2a6d5fc9cdaa6b3e6cb09a159e5f8b (diff) | |
download | bcm5719-llvm-93a38d60be274159aafe32440d768dcd0e9cd2df.tar.gz bcm5719-llvm-93a38d60be274159aafe32440d768dcd0e9cd2df.zip |
[OPENMP][NVPTX]Increment iterator only when it is used, NFC.
llvm-svn: 344574
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp b/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp index 4d5a580bd67..2aa8e83c2c0 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp +++ b/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp @@ -2138,7 +2138,8 @@ void CGOpenMPRuntimeNVPTX::emitGenericVarsProlog(CodeGenFunction &CGF, CGF.EmitStoreOfScalar(ParValue, VarAddr); I->getSecond().MappedParams->setVarAddr(CGF, VD, VarAddr.getAddress()); } - ++SecIt; + if (IsTTD) + ++SecIt; } } for (const ValueDecl *VD : I->getSecond().EscapedVariableLengthDecls) { |