File clang-resourcedirs.patch of Package llvm4.8721

Index: cfe-4.0.1.src/lib/Driver/Driver.cpp
===================================================================
--- cfe-4.0.1.src/lib/Driver/Driver.cpp
+++ cfe-4.0.1.src/lib/Driver/Driver.cpp
@@ -64,7 +64,7 @@ Driver::Driver(StringRef ClangExecutable
 
   // Compute the path to the resource directory.
   StringRef ClangResourceDir(CLANG_RESOURCE_DIR);
-  SmallString<128> P(Dir);
+  SmallString<128> P((Dir != "") ? Dir : "/usr/bin/");
   if (ClangResourceDir != "") {
     llvm::sys::path::append(P, ClangResourceDir);
   } else {
openSUSE Build Service is sponsored by