]> granicus.if.org Git - clang/commitdiff
Merging r216572:
authorBill Wendling <isanbard@gmail.com>
Wed, 27 Aug 2014 20:07:31 +0000 (20:07 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 27 Aug 2014 20:07:31 +0000 (20:07 +0000)
------------------------------------------------------------------------
r216572 | chandlerc | 2014-08-27 11:21:27 -0700 (Wed, 27 Aug 2014) | 3 lines

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/branches/release_35@216588 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp
test/Driver/Inputs/gentoo_linux_gcc_4.6.2_tree/usr/include/.keep [new file with mode: 0644]
test/Driver/Inputs/gentoo_linux_gcc_4.6.4_tree/usr/include/.keep [new file with mode: 0644]

index 9b79c9a3d763411bfb1516d9e8e056315e4f2943..b46f69de96a3e21e6c669a079a48771cd6b0f644 100644 (file)
@@ -3394,7 +3394,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 (file)
index 0000000..e69de29
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 (file)
index 0000000..e69de29