]> granicus.if.org Git - clang/commitdiff
Silence some -Wunused-variable warnings; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 15 Feb 2018 20:56:19 +0000 (20:56 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 15 Feb 2018 20:56:19 +0000 (20:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325292 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/ExprEngineCXX.cpp

index 8e157b1df3f2eb9512369ca276cce58d2f0dbf51..9c95507ba572a722048598089e17edec7cb36861 100644 (file)
@@ -135,7 +135,7 @@ ExprEngine::getRegionForConstructedObject(const CXXConstructExpr *CE,
         LValue = makeZeroElementRegion(State, LValue, Ty,
                                        CallOpts.IsArrayCtorOrDtor);
         return LValue.getAsRegion();
-      } else if (auto *RS = dyn_cast<ReturnStmt>(TriggerStmt)) {
+      } else if (isa<ReturnStmt>(TriggerStmt)) {
         // TODO: We should construct into a CXXBindTemporaryExpr or a
         // MaterializeTemporaryExpr around the call-expression on the previous
         // stack frame. Currently we re-bind the temporary to the correct region
@@ -146,7 +146,7 @@ ExprEngine::getRegionForConstructedObject(const CXXConstructExpr *CE,
         // construction context that'd give us the right temporary expression.
         CallOpts.IsTemporaryCtorOrDtor = true;
         return MRMgr.getCXXTempObjectRegion(CE, LCtx);
-      } else if (auto *BTE = dyn_cast<CXXBindTemporaryExpr>(TriggerStmt)) {
+      } else if (isa<CXXBindTemporaryExpr>(TriggerStmt)) {
         CallOpts.IsTemporaryCtorOrDtor = true;
         return MRMgr.getCXXTempObjectRegion(CE, LCtx);
       }