This is an archive of the discontinued LLVM Phabricator instance.

Logically Dead Code
Needs ReviewPublic

Authored by chakshugrover on Aug 13 2015, 9:11 AM.

Details

Reviewers
rsmith
Summary

Removed Logically Dead Code

13698	  if (!II) {
13699	    Diag(DeclStart, diag::err_anonymous_property);
13700	    return nullptr;
13701	  }

As we have already handled the case for II being NULL. So now further we take the value of II to be non-NULL making this condition here essentially true

13770	  } else if (II) {
13771	    PushOnScopeChains(NewPD, S);
13772	  } else

and making this code logically dead

13772	  } else
13773	    Record->addDecl(NewPD);

Diff Detail

Event Timeline

chakshugrover retitled this revision from to Logically Dead Code.
chakshugrover updated this object.
chakshugrover added a subscriber: llvm-commits.
vsk added a subscriber: vsk.Aug 22 2015, 11:00 PM

Good catch! LGTM.