Use llvm_report_error, not llvm_unreachable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75429 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-07-12 21:01:49 +00:00
parent 3b30a2bdca
commit cae9a3f51d

View 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;
}