Skip to content

Commit abbef3f

Browse files
committed
Post-rebase fix
1 parent 7659551 commit abbef3f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

clang/lib/Driver/ModulesDriver.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,9 @@ StandaloneFixIt::StandaloneFixIt(const SourceManager &SrcMgr,
303303
static std::string canonicalizeFilename(const SourceManager &SrcMgr,
304304
StringRef Filename) {
305305
SmallString<256> Abs(Filename);
306-
if (!llvm::sys::path::is_absolute(Abs)) {
307-
if (const auto &CWD =
308-
SrcMgr.getFileManager().getFileSystemOpts().WorkingDir;
309-
!CWD.empty())
310-
llvm::sys::fs::make_absolute(CWD, Abs);
311-
}
306+
if (const auto &CWD = SrcMgr.getFileManager().getFileSystemOpts().WorkingDir;
307+
!CWD.empty())
308+
llvm::sys::path::make_absolute(CWD, Abs);
312309
return std::string(Abs.str());
313310
}
314311

0 commit comments

Comments
 (0)