Don't use llvm_report_error in libSystem, this is a layering violation.
authorDaniel Dunbar <daniel@zuster.org>
Sun, 26 Jul 2009 21:16:42 +0000 (21:16 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 26 Jul 2009 21:16:42 +0000 (21:16 +0000)
llvm-svn: 77169

llvm/lib/System/Win32/Path.inc

index 7d7137c..80c7bd9 100644 (file)
@@ -135,10 +135,10 @@ void Path::makeAbsolute() {
 
   if (0 == RetLength) {
     // FIXME: Report the error GetLastError()
-    llvm_report_error("Unable to make absolute path!");
+    assert(0 && "Unable to make absolute path!");
   } else if (RetLength > MAX_PATH) {
     // FIXME: Report too small buffer (needed RetLength bytes).
-    llvm_report_error("Unable to make absolute path!");
+    assert(0 && "Unable to make absolute path!");
   } else {
     path = FullPath;
   }