Skip to content

Commit bb7bc8d

Browse files
committed
fix an interaction between -isystem . and isysroot.
llvm-svn: 47646
1 parent 6217dff commit bb7bc8d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clang/Driver/clang.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,6 @@ static void AddPath(const std::string &Path, IncludeDirGroup Group,
698698
// handle things like C:\ right, nor win32 \\network\device\blah.
699699
if (isysroot.size() != 1 || isysroot[0] != '/') // Add isysroot if present.
700700
MappedPath.append(isysroot.begin(), isysroot.end());
701-
if (Path[0] != '/') // If in the system group, add a /.
702-
MappedPath.push_back('/');
703701
}
704702

705703
MappedPath.append(Path.begin(), Path.end());

0 commit comments

Comments
 (0)