From: Erich Keane Date: Thu, 19 Jul 2018 17:19:16 +0000 (+0000) Subject: Fix unused variable warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=262361d19d59e1d1840d9360cf4adfc6bd24d860;p=clang Fix unused variable warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337473 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGOpenMPRuntime.cpp b/lib/CodeGen/CGOpenMPRuntime.cpp index 8d4e83bf93..478fda7d91 100644 --- a/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/lib/CodeGen/CGOpenMPRuntime.cpp @@ -6932,7 +6932,7 @@ private: bool IsExpressionFirstInfo = true; Address BP = Address::invalid(); - if (const auto *ME = dyn_cast(I->getAssociatedExpression())) { + if (isa(I->getAssociatedExpression())) { // The base is the 'this' pointer. The content of the pointer is going // to be the base of the field being mapped. BP = CGF.LoadCXXThisAddress();