Selaa lähdekoodia

Add a FIXME to provide a sensible error message here

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145983 91177308-0d34-0410-b5e6-96231b3b80d8
Douglas Gregor 13 vuotta sitten
vanhempi
commit
e912029b91
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      lib/Frontend/CompilerInstance.cpp

+ 3 - 2
lib/Frontend/CompilerInstance.cpp

@@ -1025,9 +1025,10 @@ static void compileModule(CompilerInstance &ImportingInstance,
     if (llvm::sys::fs::unique_file(TempModuleMapFileName.str(), FD, 
                                    TempModuleMapFileName,
                                    /*makeAbsolute=*/true)
-          != llvm::errc::success)
+          != llvm::errc::success) {
+      // FIXME: Give a sensible error message here.
       return;
-
+    }
     // Print the module map to this file.
     llvm::raw_fd_ostream OS(FD, /*shouldClose=*/true);
     Module->print(OS);