Use llvm_report_error, not llvm_unreachable.
authorDaniel Dunbar <daniel@zuster.org>
Sun, 12 Jul 2009 21:01:49 +0000 (21:01 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 12 Jul 2009 21:01:49 +0000 (21:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75429 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Win32/Path.inc

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