summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-10-16 00:09:06 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-10-16 00:09:06 +0000
commit93a38d60be274159aafe32440d768dcd0e9cd2df (patch)
tree615e024348a0972699ebeae66d2c163a35bdb06e /clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
parente70c560b6d2a6d5fc9cdaa6b3e6cb09a159e5f8b (diff)
downloadbcm5719-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/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp')
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp3
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) {
OpenPOWER on IntegriCloud