r216572 - Fix PR20773 which I introduced with a silly edit mistake in r216531.
Chandler Carruth
chandlerc at gmail.com
Wed Aug 27 11:21:28 PDT 2014
Author: chandlerc
Date: Wed Aug 27 13:21:27 2014
New Revision: 216572
URL: http://llvm.org/viewvc/llvm-project?rev=216572&view=rev
Log:
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.
Added:
cfe/trunk/test/Driver/Inputs/gentoo_linux_gcc_4.6.2_tree/usr/include/
cfe/trunk/test/Driver/Inputs/gentoo_linux_gcc_4.6.2_tree/usr/include/.keep
cfe/trunk/test/Driver/Inputs/gentoo_linux_gcc_4.6.4_tree/usr/include/
cfe/trunk/test/Driver/Inputs/gentoo_linux_gcc_4.6.4_tree/usr/include/.keep
Modified:
cfe/trunk/lib/Driver/ToolChains.cpp
Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=216572&r1=216571&r2=216572&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Wed Aug 27 13:21:27 2014
@@ -3353,7 +3353,7 @@ void Linux::AddClangSystemIncludeArgs(co
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);
Added: cfe/trunk/test/Driver/Inputs/gentoo_linux_gcc_4.6.2_tree/usr/include/.keep
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/gentoo_linux_gcc_4.6.2_tree/usr/include/.keep?rev=216572&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/gentoo_linux_gcc_4.6.4_tree/usr/include/.keep
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/gentoo_linux_gcc_4.6.4_tree/usr/include/.keep?rev=216572&view=auto
==============================================================================
(empty)
More information about the cfe-commits
mailing list