summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2018-10-30 08:49:26 +0000
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2018-10-30 08:49:26 +0000
commit6c2d83b46d6de6ab6d99c637ca0ec5fafdc280e8 (patch)
tree6c64f766d8d85034ec100393f2ec45b5a333c9bc
parent7fc4f0d9af9778697911574ea6f08c64700b8253 (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud