Page MenuHomePhabricator

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

Authored by mib on May 17 2021, 4:29 PM.



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).


Signed-off-by: Med Ismail Bennani <>

Diff Detail

Event Timeline

mib created this revision.May 17 2021, 4:29 PM
mib requested review of this revision.May 17 2021, 4:29 PM
This revision is now accepted and ready to land.May 17 2021, 5:04 PM
mib updated this revision to Diff 346023.May 17 2021, 5:28 PM

Add test.

This revision was landed with ongoing or failed builds.May 17 2021, 5:29 PM
This revision was automatically updated to reflect the committed changes.