The compiler complained about
../tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp:184:15: error: unused variable 'CSI' [-Werror,-Wunused-variable]
if (auto *CSI = CGF.CapturedStmtInfo) {
^
1 error generated.
I don't know this code but it seems like an easy fix so I push it anyway
to get rid of the warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@327694
91177308-0d34-0410-b5e6-
96231b3b80d8
return;
// Variables captured by value must be globalized.
if (auto *CSI = CGF.CapturedStmtInfo) {
- if (const FieldDecl *FD = CGF.CapturedStmtInfo->lookup(cast<VarDecl>(VD))) {
+ if (const FieldDecl *FD = CSI->lookup(cast<VarDecl>(VD))) {
if (FD->getType()->isReferenceType())
return;
EscapedParameters.insert(VD);