This is an archive of the discontinued LLVM Phabricator instance.

[asan] Fix comparison in BufferedStackTrace::LocatePcInTrace
ClosedPublic

Authored by vitalybuka on Jan 4 2017, 8:24 PM.

Details

Summary

Debug builds can have larger distance between stack trace and PC on that stack.
If we assume that PC is always correct we can snap it to the nearest trace.

Diff Detail

Repository
rL LLVM

Event Timeline

vitalybuka updated this revision to Diff 83189.Jan 4 2017, 8:24 PM
vitalybuka retitled this revision from to [asan] Fix comparison in BufferedStackTrace::LocatePcInTrace.
vitalybuka updated this object.
vitalybuka added a reviewer: eugenis.
vitalybuka added a subscriber: llvm-commits.
vitalybuka updated this revision to Diff 83190.Jan 4 2017, 8:26 PM

fixed comment

eugenis accepted this revision.Jan 5 2017, 12:17 PM
eugenis edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jan 5 2017, 12:17 PM
This revision was automatically updated to reflect the committed changes.