Possible bug in find_first_component() (lib/Support/Path.cpp)

Does anyone know why the search for file/directory start from index 2? For shorter relative paths e.g. “e/f/foo.c” this will return “e/f” as the path component when iterating through the path.

Seems like it’s been there since it was added by mspencer (not sure what his email address is, please cc if you know) in PathV2.cpp.

http://llvm-reviews.chandlerc.com/diffusion/L/browse/llvm/trunk/lib/Support/Path.cpp;187660$80

Thanks.

+Michael