[lld] [LLD] [COFF] Don't look up relative paths to parent directories in the search paths (PR #67858)

Tobias Hieta via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 2 00:25:29 PDT 2023


================
@@ -483,7 +483,10 @@ StringRef LinkerDriver::findFile(StringRef filename) {
     return filename;
   };
 
-  if (sys::path::is_absolute(filename))
+  bool hasParentDir = filename.starts_with("../") ||
----------------
tru wrote:

We are testing for a lot of different patterns here, but the test only test one of them. Shouldn't we make sure that all of these checks works?

https://github.com/llvm/llvm-project/pull/67858


More information about the llvm-commits mailing list