[llvm] r359422 - [DWARF] Delete a redundant check in getFileNameByIndex()
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 01:15:14 PDT 2019
Author: maskray
Date: Mon Apr 29 01:15:13 2019
New Revision: 359422
URL: http://llvm.org/viewvc/llvm-project?rev=359422&view=rev
Log:
[DWARF] Delete a redundant check in getFileNameByIndex()
Modified:
llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp?rev=359422&r1=359421&r2=359422&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp Mon Apr 29 01:15:13 2019
@@ -1032,8 +1032,7 @@ bool DWARFDebugLine::LineTable::getFileN
// 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.
More information about the llvm-commits
mailing list