From 8075c02dd86fec256e28902d293e3445bb8bd186 Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Mon, 15 Jul 2024 11:20:14 -0700 Subject: [PATCH] Remove invalid path check These paths are expected to be absolute, but that should be handled by the `fs` object. --- llbuild.xcodeproj/project.pbxproj | 2 +- products/llbuildSwift/BuildSystemBindings.swift | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/llbuild.xcodeproj/project.pbxproj b/llbuild.xcodeproj/project.pbxproj index 2278c3e9..87f5707f 100644 --- a/llbuild.xcodeproj/project.pbxproj +++ b/llbuild.xcodeproj/project.pbxproj @@ -2289,8 +2289,8 @@ 1484D1DA2094509E00D3830F /* LICENSE.txt */, E1A223FC19F990E60059043E /* README.md */, 1484D1DB209450A600D3830F /* Vagrantfile */, - E1A223F219F98F1C0059043E /* Products */, E13B5E411A00395300EA0405 /* Frameworks */, + E1A223F219F98F1C0059043E /* Products */, ); indentWidth = 2; sourceTree = ""; diff --git a/products/llbuildSwift/BuildSystemBindings.swift b/products/llbuildSwift/BuildSystemBindings.swift index f85c60bc..172c4639 100644 --- a/products/llbuildSwift/BuildSystemBindings.swift +++ b/products/llbuildSwift/BuildSystemBindings.swift @@ -1213,12 +1213,6 @@ public final class BuildSystem { } private func fsGetFileInfo(_ path: String, _ info: UnsafeMutablePointer) { - // Ignore invalid paths. - guard path.first == "/" else { - info.pointee = llb_fs_file_info_t() - return - } - // If the path doesn't exist, it is missing. let fs = delegate.fs! guard let s = try? fs.getFileInfo(path).statBuf else {