r329444 - [analyzer] Remove an unused variable
George Karpenkov via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 6 12:03:43 PDT 2018
Author: george.karpenkov
Date: Fri Apr 6 12:03:43 2018
New Revision: 329444
URL: http://llvm.org/viewvc/llvm-project?rev=329444&view=rev
Log:
[analyzer] Remove an unused variable
Modified:
cfe/trunk/lib/Analysis/LiveVariables.cpp
Modified: cfe/trunk/lib/Analysis/LiveVariables.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/LiveVariables.cpp?rev=329444&r1=329443&r2=329444&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/LiveVariables.cpp (original)
+++ cfe/trunk/lib/Analysis/LiveVariables.cpp Fri Apr 6 12:03:43 2018
@@ -381,7 +381,7 @@ void TransferFunctions::VisitBlockExpr(B
void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) {
const Decl* D = DR->getDecl();
bool InAssignment = LV.inAssignment[DR];
- if (const auto *BD = dyn_cast<BindingDecl>(D)) {
+ if (isa<BindingDecl>(D)) {
if (!InAssignment)
val.liveBindings = LV.BSetFact.add(val.liveBindings, BD);
} else if (const auto *VD = dyn_cast<VarDecl>(D)) {
More information about the cfe-commits
mailing list