Skip to content

Commit cc1fec3

Browse files
committed
[DWARF] Delete a redundant check in getFileNameByIndex()
llvm-svn: 359422
1 parent cb929dc commit cc1fec3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,8 +1032,7 @@ bool DWARFDebugLine::LineTable::getFileNameByIndex(uint64_t FileIndex,
10321032
// We may still need to append compilation directory of compile unit.
10331033
// We know that FileName is not absolute, the only way to have an
10341034
// absolute path at this point would be if IncludeDir is absolute.
1035-
if (CompDir && Kind == FileLineInfoKind::AbsoluteFilePath &&
1036-
!isPathAbsoluteOnWindowsOrPosix(IncludeDir))
1035+
if (CompDir && !isPathAbsoluteOnWindowsOrPosix(IncludeDir))
10371036
sys::path::append(FilePath, CompDir);
10381037

10391038
// sys::path::append skips empty strings.

0 commit comments

Comments
 (0)