]> granicus.if.org Git - llvm/commitdiff
[DWARF] Delete a redundant check in getFileNameByIndex()
authorFangrui Song <maskray@google.com>
Mon, 29 Apr 2019 08:15:13 +0000 (08:15 +0000)
committerFangrui Song <maskray@google.com>
Mon, 29 Apr 2019 08:15:13 +0000 (08:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359422 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/DWARF/DWARFDebugLine.cpp

index 41d9928d72fb42ff82474d38b676e40660bdf682..1f18973f1d48c3c871d87b34f9c6befc05fc43aa 100644 (file)
@@ -1032,8 +1032,7 @@ bool DWARFDebugLine::LineTable::getFileNameByIndex(uint64_t FileIndex,
   // We may still need to append compilation directory of compile unit.
   // We know that FileName is not absolute, the only way to have an
   // absolute path at this point would be if IncludeDir is absolute.
-  if (CompDir && Kind == FileLineInfoKind::AbsoluteFilePath &&
-      !isPathAbsoluteOnWindowsOrPosix(IncludeDir))
+  if (CompDir && !isPathAbsoluteOnWindowsOrPosix(IncludeDir))
     sys::path::append(FilePath, CompDir);
 
   // sys::path::append skips empty strings.