diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index b535b3e6e94..b5b14b95f66 100644 --- a/lib/MC/MCContext.cpp +++ b/lib/MC/MCContext.cpp @@ -278,7 +278,7 @@ unsigned MCContext::GetDwarfFile(StringRef Directory, StringRef FileName, if (!tFileName.empty()) { Directory = sys::path::parent_path(FileName); if (!Directory.empty()) - FileName = sys::path::filename(FileName); + FileName = tFileName; } }