This is an archive of the discontinued LLVM Phabricator instance.

[GWP-ASan] Use functions in backtrace test, not line numbers.
ClosedPublic

Authored by hctim on Mar 25 2020, 3:03 PM.

Details

Summary

There's no unwinding functionality on Android that allows for line
numbers to be retrieved in-process. As a result, we can't have
this backtrace test run on Android.

Cleanup the test to use optnone functions instead, which is more stable
than line numbers anyway.

Diff Detail

Event Timeline

hctim created this revision.Mar 25 2020, 3:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 25 2020, 3:03 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
eugenis accepted this revision.Mar 25 2020, 4:19 PM

LGTM
noinline should be sufficient (instead of optnone)

This revision is now accepted and ready to land.Mar 25 2020, 4:19 PM

LGTM
noinline should be sufficient (instead of optnone)

" If the function does not have side-effects, there are optimizations other than inlining that causes function calls to be optimized away, although the function call is live"

With noinline, the call does actually get optimized out in this case. I'm happier with optnone instead of asm("") in the function body :)

This revision was automatically updated to reflect the committed changes.