HomePhabricator

[lldb/API] Use a valid LineEntry object in SBCompileUnit::FindLineEntryIndex

Authored by mib on May 17 2021, 5:27 PM.

Description

[lldb/API] Use a valid LineEntry object in SBCompileUnit::FindLineEntryIndex

This patch updates SBCompileUnit::FindLineEntryIndex to pass a valid
LineEntry pointer to CompileUnit::FindLineEntry.

This caused LineTable::FindLineEntryIndexByFileIndexImpl to return its
best_match initial value (UINT32_MAX).

rdar://78115426

Differential Revision: https://reviews.llvm.org/D102658

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>

Details

Committed
mibMay 17 2021, 5:28 PM
Differential Revision
D102658: [lldb/API] Use a valid LineEntry object in SBCompileUnit::FindLineEntryIndex
Parents
rGbc588f996111: [lld/mac] Inline a check
Branches
Unknown
Tags
Unknown