]> granicus.if.org Git - clang/commitdiff
Fix PR20773 which I introduced with a silly edit mistake in r216531.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 27 Aug 2014 18:21:27 +0000 (18:21 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 27 Aug 2014 18:21:27 +0000 (18:21 +0000)
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

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 9ea21b49478d9881a8454f6e02d88a3f6391ad58..2f4711563c8a01b9fe3f839b25c8490e109a2803 100644 (file)
@@ -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 (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