This is an archive of the discontinued LLVM Phabricator instance.

[ubsan] Make the 'vptr check disabled' warning more helpful
AbandonedPublic

Authored by vsk on Jul 31 2017, 11:26 AM.

Details

Reviewers
thakis
Summary

If -fsanitize=vptr is passed without -fsanitize=null being specified, it will say:

warning: implicitly disabling vptr sanitizer because null checking wasn't enabled (try specifying -fsanitize=null or -fsanitize=undefined)

Otherwise if the vptr check is enabled and null checking is explicitly disabled, it will say:

warning: implicitly disabling vptr sanitizer because null checking wasn't enabled (try removing -fno-sanitize=null)

See the mailing list thread re: r309007

Diff Detail

Event Timeline

vsk created this revision.Jul 31 2017, 11:26 AM
vsk abandoned this revision.Jul 31 2017, 1:43 PM

Abandoned in favor of D36112, since it turns out -fsanitize=null,vptr doesn't work for some use cases.