From: Chandler Carruth Date: Wed, 27 Aug 2014 18:21:27 +0000 (+0000) Subject: Fix PR20773 which I introduced with a silly edit mistake in r216531. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c1ac19b7cc8c6498a74712e0e4b647b7ea86af7;p=clang Fix PR20773 which I introduced with a silly edit mistake in r216531. Trivial fix, and I've made the gentoo tests more representative. With the changes, they would have caught this failure. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216572 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 9ea21b4947..2f4711563c 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -3353,7 +3353,7 @@ void Linux::AddClangSystemIncludeArgs(const ArgList &DriverArgs, Twine IncludeSuffix, const ArgList &DriverArgs, ArgStringList &CC1Args) { - if (!llvm::sys::fs::exists(Base)) + if (!llvm::sys::fs::exists(Base + Suffix)) return false; addSystemInclude(DriverArgs, CC1Args, Base + Suffix); diff --git a/test/Driver/Inputs/gentoo_linux_gcc_4.6.2_tree/usr/include/.keep b/test/Driver/Inputs/gentoo_linux_gcc_4.6.2_tree/usr/include/.keep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/Driver/Inputs/gentoo_linux_gcc_4.6.4_tree/usr/include/.keep b/test/Driver/Inputs/gentoo_linux_gcc_4.6.4_tree/usr/include/.keep new file mode 100644 index 0000000000..e69de29bb2