Try to open the file before use data from stat.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 13 Jul 2013 05:07:22 +0000 (05:07 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 13 Jul 2013 05:07:22 +0000 (05:07 +0000)
commit718af7892033aa965efafbf63c7636d91728662b
tree8df35a178ebb16e609598cd59fa191fb134f1402
parentee795f35f7f0e852b20f7a8052ea796e3174efd8
Try to open the file before use data from stat.

Looks like on mingw we get bogus last modification times on directories.
Should fix the mingw bots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186240 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-ar/llvm-ar.cpp