Skip to content

Commit 6f20dc8

Browse files
committed
Silence some -Wunused-variable warnings; NFC.
llvm-svn: 325292
1 parent 9860622 commit 6f20dc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ ExprEngine::getRegionForConstructedObject(const CXXConstructExpr *CE,
135135
LValue = makeZeroElementRegion(State, LValue, Ty,
136136
CallOpts.IsArrayCtorOrDtor);
137137
return LValue.getAsRegion();
138-
} else if (auto *RS = dyn_cast<ReturnStmt>(TriggerStmt)) {
138+
} else if (isa<ReturnStmt>(TriggerStmt)) {
139139
// TODO: We should construct into a CXXBindTemporaryExpr or a
140140
// MaterializeTemporaryExpr around the call-expression on the previous
141141
// stack frame. Currently we re-bind the temporary to the correct region
@@ -146,7 +146,7 @@ ExprEngine::getRegionForConstructedObject(const CXXConstructExpr *CE,
146146
// construction context that'd give us the right temporary expression.
147147
CallOpts.IsTemporaryCtorOrDtor = true;
148148
return MRMgr.getCXXTempObjectRegion(CE, LCtx);
149-
} else if (auto *BTE = dyn_cast<CXXBindTemporaryExpr>(TriggerStmt)) {
149+
} else if (isa<CXXBindTemporaryExpr>(TriggerStmt)) {
150150
CallOpts.IsTemporaryCtorOrDtor = true;
151151
return MRMgr.getCXXTempObjectRegion(CE, LCtx);
152152
}

0 commit comments

Comments
 (0)