r345573 - [OPENMP] Fix for "error: unused variable 'CED'"
Bjorn Pettersson via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 30 01:49:26 PDT 2018
Author: bjope
Date: Tue Oct 30 01:49:26 2018
New Revision: 345573
URL: http://llvm.org/viewvc/llvm-project?rev=345573&view=rev
Log:
[OPENMP] Fix for "error: unused variable 'CED'"
Quick fix to make code compile with -Werror,-Wunused-variable.
Modified:
cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp
Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp?rev=345573&r1=345572&r2=345573&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp Tue Oct 30 01:49:26 2018
@@ -5018,7 +5018,7 @@ void CodeGenFunction::EmitSimpleOMPExecu
LoopGlobals.addPrivate(
VD, [&GlobLVal]() { return GlobLVal.getAddress(); });
}
- if (const auto *CED = dyn_cast<OMPCapturedExprDecl>(VD)) {
+ if (isa<OMPCapturedExprDecl>(VD)) {
// Emit only those that were not explicitly referenced in clauses.
if (!CGF.LocalDeclMap.count(VD))
CGF.EmitVarDecl(*VD);
More information about the cfe-commits
mailing list