Flag -> Glue, the ongoing saga
[oota-llvm.git] / lib / CompilerDriver / Main.cpp
index 4f8794041b9afac67960773b1a76fceb77244a99..88cfdb21230513e4e7c4b5b5f4369fd736a817ef 100644 (file)
@@ -43,8 +43,7 @@ namespace {
       return 0;
     }
     else if (SaveTemps == SaveTempsEnum::Obj && !OutputFilename.empty()) {
-      tempDir = OutputFilename;
-      tempDir = tempDir.getDirname();
+      tempDir = sys::path::parent_path(OutputFilename);
     }
     else {
       // SaveTemps == Cwd --> use current dir (leave tempDir empty).