This is an archive of the discontinued LLVM Phabricator instance.

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

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

Details

Summary

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

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

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.