diff options
author | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2018-10-30 08:49:26 +0000 |
---|---|---|
committer | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2018-10-30 08:49:26 +0000 |
commit | 6c2d83b46d6de6ab6d99c637ca0ec5fafdc280e8 (patch) | |
tree | 6c64f766d8d85034ec100393f2ec45b5a333c9bc | |
parent | 7fc4f0d9af9778697911574ea6f08c64700b8253 (diff) | |
download | bcm5719-llvm-6c2d83b46d6de6ab6d99c637ca0ec5fafdc280e8.tar.gz bcm5719-llvm-6c2d83b46d6de6ab6d99c637ca0ec5fafdc280e8.zip |
[OPENMP] Fix for "error: unused variable 'CED'"
Quick fix to make code compile with -Werror,-Wunused-variable.
llvm-svn: 345573
-rw-r--r-- | clang/lib/CodeGen/CGStmtOpenMP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp index 718b8c326dc..c0e56647770 100644 --- a/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp @@ -5018,7 +5018,7 @@ void CodeGenFunction::EmitSimpleOMPExecutableDirective( 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); |