[llvm-commits] [llvm] r118681 - /llvm/trunk/lib/System/Win32/Path.inc
Charles Davis
cdavis at mymail.mines.edu
Wed Nov 10 07:12:40 PST 2010
On 11/10/10 8:05 AM, Michael J. Spencer wrote:
> @@ -376,7 +376,15 @@
>
> bool
> Path::isSymLink() const {
> - return false;
> + DWORD attributes = GetFileAttributes(path.c_str());
> +
> + if (attributes == INVALID_FILE_ATTRIBUTES)
> + // There's no sane way to report this :(.
> + assert(0 && "GetFileAttributes returned INVALID_FILE_ATTRIBUTES");
Why don't you just assert attributes != INVALID_FILE_ATTRIBUTES?
Chip
More information about the llvm-commits
mailing list