]> granicus.if.org Git - clang/commitdiff
Fix unused variable warning.
authorErich Keane <erich.keane@intel.com>
Thu, 19 Jul 2018 17:19:16 +0000 (17:19 +0000)
committerErich Keane <erich.keane@intel.com>
Thu, 19 Jul 2018 17:19:16 +0000 (17:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337473 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGOpenMPRuntime.cpp

index 8d4e83bf935a988ebb17f7469c44269c93733307..478fda7d913bf22ffd97b8b148a2e9677065ece6 100644 (file)
@@ -6932,7 +6932,7 @@ private:
     bool IsExpressionFirstInfo = true;
     Address BP = Address::invalid();
 
-    if (const auto *ME = dyn_cast<MemberExpr>(I->getAssociatedExpression())) {
+    if (isa<MemberExpr>(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();