projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e70c560
)
[OPENMP][NVPTX]Increment iterator only when it is used, NFC.
author
Alexey Bataev
<a.bataev@hotmail.com>
Tue, 16 Oct 2018 00:09:06 +0000
(
00:09
+0000)
committer
Alexey Bataev
<a.bataev@hotmail.com>
Tue, 16 Oct 2018 00:09:06 +0000
(
00:09
+0000)
llvm-svn: 344574
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
b/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
index
4d5a580
..
2aa8e83
100644
(file)
--- 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) {