Fix unused variable warning introduced at revision 328910.

llvm-svn: 328968
This commit is contained in:
Andrea Di Biagio 2018-04-02 12:04:37 +00:00
parent 5b31b6f12d
commit d3144ea849
1 changed files with 1 additions and 2 deletions

View File

@ -383,8 +383,7 @@ void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) {
bool InAssignment = LV.inAssignment[DR]; bool InAssignment = LV.inAssignment[DR];
if (const auto *BD = dyn_cast<BindingDecl>(D)) { if (const auto *BD = dyn_cast<BindingDecl>(D)) {
if (!InAssignment) if (!InAssignment)
val.liveBindings = val.liveBindings = LV.BSetFact.add(val.liveBindings, BD);
LV.BSetFact.add(val.liveBindings, cast<BindingDecl>(D));
} else if (const auto *VD = dyn_cast<VarDecl>(D)) { } else if (const auto *VD = dyn_cast<VarDecl>(D)) {
if (!InAssignment && !isAlwaysAlive(VD)) if (!InAssignment && !isAlwaysAlive(VD))
val.liveDecls = LV.DSetFact.add(val.liveDecls, VD); val.liveDecls = LV.DSetFact.add(val.liveDecls, VD);