]> granicus.if.org Git - clang/commit
[Frontend] Fix an issue where a quoted search path is incorrectly
authorAlex Lorenz <arphaman@gmail.com>
Fri, 2 Dec 2016 09:51:51 +0000 (09:51 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 2 Dec 2016 09:51:51 +0000 (09:51 +0000)
commit35ec7f07b82c49eeda6c3ca887ebc2d34206b9de
tree5c4677091074ea4d356a8f98c6c986194738adc5
parent124ca6c25250faed372311b13f8fb6a1734eed5a
[Frontend] Fix an issue where a quoted search path is incorrectly
removed as a duplicate header search path

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.

rdar://23991350

Differential Revision: https://reviews.llvm.org/D27298

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288491 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/InitHeaderSearch.cpp
test/Frontend/include-duplicate-removal.c [new file with mode: 0644]