From 49a88cd68084add939345421489773f466a8a9ce Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 15 Feb 2018 20:56:19 +0000 Subject: [PATCH] Silence some -Wunused-variable warnings; NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325292 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/ExprEngineCXX.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp b/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp index 8e157b1df3..9c95507ba5 100644 --- a/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp +++ b/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp @@ -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(TriggerStmt)) { + } else if (isa(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(TriggerStmt)) { + } else if (isa(TriggerStmt)) { CallOpts.IsTemporaryCtorOrDtor = true; return MRMgr.getCXXTempObjectRegion(CE, LCtx); } -- 2.40.0