This is an archive of the discontinued LLVM Phabricator instance.

[Frontend] Fix an issue where a quoted search path is incorrectly removed as a duplicate header search path
ClosedPublic

Authored by arphaman on Dec 1 2016, 3:26 AM.

Details

Summary

The commit r126167 started passing the First index into RemoveDuplicates, but forgot to update 0 to First in the loop that looks for the duplicate. This resulted in a bug where an -iquoted search path was incorrectly removed if you passed in the same path into -iquote and more than one time into -isystem.

Diff Detail

Repository
rL LLVM

Event Timeline

arphaman updated this revision to Diff 79887.Dec 1 2016, 3:26 AM
arphaman retitled this revision from to [Frontend] Fix an issue where a quoted search path is incorrectly removed as a duplicate header search path.
arphaman updated this object.
arphaman added reviewers: mehdi_amini, bruno.
arphaman set the repository for this revision to rL LLVM.
arphaman added a subscriber: cfe-commits.
mehdi_amini accepted this revision.Dec 1 2016, 9:58 AM
mehdi_amini edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Dec 1 2016, 9:58 AM
bruno accepted this revision.Dec 1 2016, 10:24 AM
bruno edited edge metadata.

LGTM!

This revision was automatically updated to reflect the committed changes.