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);
       }


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to