Skip to content

Commit eee9331

Browse files
committed
ClangImporter: correct a duplicated path component
When computing the path for a non-architecture specific resource, we would append the architecture unconditionally if `-sdk` is used. This would result in the path being miscomputed with the architecture or the architecture duplicated if it was architecture specific. Found by inspection.
1 parent b59f5c7 commit eee9331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ClangIncludePaths.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static llvm::Optional<Path> getActualModuleMapPath(
3838
if (!SDKPath.empty()) {
3939
result.append(SDKPath.begin(), SDKPath.end());
4040
llvm::sys::path::append(result, "usr", "lib", "swift");
41-
llvm::sys::path::append(result, platform, arch);
41+
llvm::sys::path::append(result, platform);
4242
if (isArchSpecific) {
4343
llvm::sys::path::append(result, arch);
4444
}

0 commit comments

Comments
 (0)