exit from isBytecodeLPath with "false".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22360
91177308-0d34-0410-b5e6-
96231b3b80d8
sys::Path LPath(LibPath);
+ // Make sure it exists
+ if (!LPath.exists())
+ return isBytecodeLPath;
+
// Make sure its a directory
- if (!LPath.isDirectory())
+ try
+ {
+ if (!LPath.isDirectory())
+ return isBytecodeLPath;
+ }
+ catch (std::string& xcptn)
+ {
return isBytecodeLPath;
+ }
// Grab the contents of the -L path
std::set<sys::Path> Files;