forked from OSchip/llvm-project
Fix unused variable warning introduced at revision 328910.
llvm-svn: 328968
This commit is contained in:
parent
5b31b6f12d
commit
d3144ea849
|
@ -383,8 +383,7 @@ void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) {
|
|||
bool InAssignment = LV.inAssignment[DR];
|
||||
if (const auto *BD = dyn_cast<BindingDecl>(D)) {
|
||||
if (!InAssignment)
|
||||
val.liveBindings =
|
||||
LV.BSetFact.add(val.liveBindings, cast<BindingDecl>(D));
|
||||
val.liveBindings = LV.BSetFact.add(val.liveBindings, BD);
|
||||
} else if (const auto *VD = dyn_cast<VarDecl>(D)) {
|
||||
if (!InAssignment && !isAlwaysAlive(VD))
|
||||
val.liveDecls = LV.DSetFact.add(val.liveDecls, VD);
|
||||
|
|
Loading…
Reference in New Issue