This is an archive of the discontinued LLVM Phabricator instance.

Change filesystem lib to recognize paths started with \ as root
AbandonedPublic

Authored by zturner on Jun 19 2014, 5:56 PM.

Details

Reviewers
bogner
Summary

Previously a path of the form

\foo\bar

would not be recognized as a root path on Windows. This patch allows paths of this nature to be considered absolute paths.

Diff Detail

Event Timeline

zturner updated this revision to Diff 10668.Jun 19 2014, 5:56 PM
zturner retitled this revision from to Change filesystem lib to recognize paths started with \ as root.
zturner updated this object.
zturner edited the test plan for this revision. (Show Details)
zturner added a reviewer: bogner.
zturner set the repository for this revision to rL LLVM.
zturner added a subscriber: Unknown Object (MLST).
zturner abandoned this revision.Jun 19 2014, 9:40 PM

Abandoning this as it's obviously wrong. Occurred to me later on that even a path that starts with \ in windows is still a relative path, it's just relative to the current drive.