Flag -> Glue, the ongoing saga
[oota-llvm.git] / lib / CompilerDriver / Action.cpp
index dcb0c57649f973a6ed6a547081cdb9570644d469..a8d625c7ac04ce431bf560c24d57e6da99e86089 100644 (file)
@@ -56,7 +56,7 @@ namespace {
   int ExecuteProgram (const std::string& name, const StrVector& args) {
     sys::Path prog(name);
 
-    if (!prog.isAbsolute()) {
+    if (sys::path::is_relative(prog.str())) {
       prog = PrependMainExecutablePath(name, ProgramName,
                                        (void *)(intptr_t)&Main);