Skip to content

Commit 988e85f

Browse files
jakepetroulesdmbryson
authored andcommitted
Remove invalid path check
These paths are expected to be absolute, but that should be handled by the `fs` object.
1 parent 68ff355 commit 988e85f

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

llbuild.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2289,8 +2289,8 @@
22892289
1484D1DA2094509E00D3830F /* LICENSE.txt */,
22902290
E1A223FC19F990E60059043E /* README.md */,
22912291
1484D1DB209450A600D3830F /* Vagrantfile */,
2292-
E1A223F219F98F1C0059043E /* Products */,
22932292
E13B5E411A00395300EA0405 /* Frameworks */,
2293+
E1A223F219F98F1C0059043E /* Products */,
22942294
);
22952295
indentWidth = 2;
22962296
sourceTree = "<group>";

products/llbuildSwift/BuildSystemBindings.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,12 +1240,6 @@ public final class BuildSystem {
12401240
}
12411241

12421242
private func fsGetFileInfo(_ path: String, _ info: UnsafeMutablePointer<llb_fs_file_info_t>) {
1243-
// Ignore invalid paths.
1244-
guard path.first == "/" else {
1245-
info.pointee = llb_fs_file_info_t()
1246-
return
1247-
}
1248-
12491243
// If the path doesn't exist, it is missing.
12501244
let fs = delegate.fs!
12511245
guard let s = try? fs.getFileInfo(path).statBuf else {

0 commit comments

Comments
 (0)