llvm/clang-pr22625.patch
Jakub Jelinek ca2a27c7f8 3.5.0-11
2015-02-18 20:10:28 +01:00

14 lines
587 B
Diff

Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp (revision 229718)
+++ lib/Driver/ToolChains.cpp (revision 229719)
@@ -3154,7 +3154,8 @@
SmallVector<StringRef, 5> dirs;
CIncludeDirs.split(dirs, ":");
for (StringRef dir : dirs) {
- StringRef Prefix = llvm::sys::path::is_absolute(dir) ? SysRoot : "";
+ StringRef Prefix =
+ llvm::sys::path::is_absolute(dir) ? StringRef(SysRoot) : "";
addExternCSystemInclude(DriverArgs, CC1Args, Prefix + dir);
}
return;