Fix an inconsistency in treatment of trailing / in path::const_iterator
authorBen Langmuir <blangmuir@apple.com>
Wed, 5 Mar 2014 19:56:30 +0000 (19:56 +0000)
committerBen Langmuir <blangmuir@apple.com>
Wed, 5 Mar 2014 19:56:30 +0000 (19:56 +0000)
commit82d372e12bc20de0a37c23a9a1f288f4fda0dae2
tree177963a51c5bf470d612b74b336de84770e00701
parent4d36f91c0852c2c054056fa9bab7f6c443a82bb6
Fix an inconsistency in treatment of trailing / in path::const_iterator

When using a //net/ path, we were transforming the trailing / into a '.'
when the path was just the root path and we were iterating backwards.
Forwards iteration and other kinds of root path (C:\, /) were already
correct.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202999 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Path.cpp
unittests/Support/Path.cpp