This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy] Delete redundant !Config.xx.empty() when followed by positive is_contained() check
ClosedPublic

Authored by MaskRay on Nov 28 2018, 5:14 PM.

Details

Summary

The original intention of !Config.xx.empty() was probably to emphasize the thing that is currently considered, but I feel the simplified form is actually easier to understand and it is also consistent with the call sites in other llvm components.

Diff Detail

Repository
rL LLVM

Event Timeline

MaskRay created this revision.Nov 28 2018, 5:14 PM

Thanks for cleaning this up.

This revision is now accepted and ready to land.Nov 28 2018, 9:28 PM
rupprecht accepted this revision.Nov 28 2018, 10:03 PM
This revision was automatically updated to reflect the committed changes.