Skip to content

Commit df9dab2

Browse files
committed
fixup! fixup! [Clang][Driver] Fix the missing Target-Triple-Level include path resolution in Baremetal Driver
1 parent bf83ffd commit df9dab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/ToolChains/BareMetal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ void BareMetal::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
421421
llvm::sys::path::append(Dir, "include");
422422
addSystemInclude(DriverArgs, CC1Args, Dir.str());
423423
}
424-
SmallString<128> Dir = SysRootDir;
424+
SmallString<128> Dir(SysRootDir);
425425
llvm::sys::path::append(Dir, getTripleString());
426426
if (D.getVFS().exists(Dir)) {
427427
llvm::sys::path::append(Dir, "include");

0 commit comments

Comments
 (0)