forked from OSchip/llvm-project
Don't use llvm_report_error in libSystem, this is a layering violation.
llvm-svn: 77169
This commit is contained in:
parent
602d44fa70
commit
bcd92f1bc4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue