diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2018-02-15 20:56:19 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2018-02-15 20:56:19 +0000 |
commit | 6f20dc8988ebd034cbf52a225f5a363c2b30b645 (patch) | |
tree | d994aef68d95532203a31065dff48bb71a1fb0fc /clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp | |
parent | 986062219fd2600835229f36496bb4ec7ee52b38 (diff) | |
download | bcm5719-llvm-6f20dc8988ebd034cbf52a225f5a363c2b30b645.tar.gz bcm5719-llvm-6f20dc8988ebd034cbf52a225f5a363c2b30b645.zip |
Silence some -Wunused-variable warnings; NFC.
llvm-svn: 325292
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp index 8e157b1df3f..9c95507ba57 100644 --- a/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp +++ b/clang/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<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); } |