r325292 - Silence some -Wunused-variable warnings; NFC.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 15 12:56:19 PST 2018


Author: aaronballman
Date: Thu Feb 15 12:56:19 2018
New Revision: 325292

URL: http://llvm.org/viewvc/llvm-project?rev=325292&view=rev
Log:
Silence some -Wunused-variable warnings; NFC.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp?rev=325292&r1=325291&r2=325292&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp Thu Feb 15 12:56:19 2018
@@ -135,7 +135,7 @@ ExprEngine::getRegionForConstructedObjec
         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::getRegionForConstructedObjec
         // 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);
       }




More information about the cfe-commits mailing list