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); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits