This is an archive of the discontinued LLVM Phabricator instance.

[UBSan] Add report deduplication for -fsanitize=function.
ClosedPublic

Authored by samsonov on Feb 9 2015, 6:34 PM.

Details

Summary

Make sure we don't print the error report from -fsanitize=function
twice for the same source location, as we do in another UBSan handlers.

Diff Detail

Repository
rL LLVM

Event Timeline

samsonov updated this revision to Diff 19636.Feb 9 2015, 6:34 PM
samsonov retitled this revision from to [UBSan] Add report deduplication for -fsanitize=function..
samsonov updated this object.
samsonov edited the test plan for this revision. (Show Details)
samsonov added reviewers: pcc, rsmith.
samsonov added a subscriber: Unknown Object (MLST).
pcc added inline comments.Feb 9 2015, 7:54 PM
test/ubsan/TestCases/TypeCheck/Function/function.cpp
26 ↗(On Diff #19636)

Do we want a NOSYM-NOT here as well?

28 ↗(On Diff #19636)

Can we move this call to the top of main and re-instate its CHECK-NOT? That way, we know that if we don't warn about it, it was not because of deduplication.

samsonov updated this revision to Diff 19700.Feb 10 2015, 12:03 PM
  • Fix test case according to review.
test/ubsan/TestCases/TypeCheck/Function/function.cpp
26 ↗(On Diff #19636)

Done

28 ↗(On Diff #19636)

Done

pcc accepted this revision.Feb 10 2015, 12:11 PM
pcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.Feb 10 2015, 12:11 PM
This revision was automatically updated to reflect the committed changes.