[llvm-commits] [llvm] r77169 - /llvm/trunk/lib/System/Win32/Path.inc
Daniel Dunbar
daniel at zuster.org
Sun Jul 26 14:16:43 PDT 2009
Author: ddunbar
Date: Sun Jul 26 16:16:42 2009
New Revision: 77169
URL: http://llvm.org/viewvc/llvm-project?rev=77169&view=rev
Log:
Don't use llvm_report_error in libSystem, this is a layering violation.
Modified:
llvm/trunk/lib/System/Win32/Path.inc
Modified: llvm/trunk/lib/System/Win32/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Win32/Path.inc?rev=77169&r1=77168&r2=77169&view=diff
==============================================================================
--- llvm/trunk/lib/System/Win32/Path.inc (original)
+++ llvm/trunk/lib/System/Win32/Path.inc Sun Jul 26 16:16:42 2009
@@ -135,10 +135,10 @@
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;
}
More information about the llvm-commits
mailing list