[OPENMP][NVPTX]Increment iterator only when it is used, NFC.

llvm-svn: 344574
This commit is contained in:
Alexey Bataev 2018-10-16 00:09:06 +00:00
parent e70c560b6d
commit 93a38d60be
1 changed files with 2 additions and 1 deletions

View File

@ -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) {