This is an archive of the discontinued LLVM Phabricator instance.

Remove (unneeded) '-asan-use-after-return' from hoist-argument-init-insts.ll.
ClosedPublic

Authored by kda on May 13 2021, 3:09 PM.

Details

Summary

Remove (unneeded) '-asan-use-after-return' from hoist-argument-init-insts.ll.

Diff Detail

Event Timeline

kda requested review of this revision.May 13 2021, 3:09 PM
kda created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 13 2021, 3:09 PM
kda added a reviewer: vsk.May 13 2021, 3:14 PM

Vendant,
I was fiddling around with UAR, and I noticed your test seemed to pass without it, as it is the default. It also passes when true.

vsk added a comment.May 13 2021, 5:35 PM

Is there a planned change to the use-after-return instrumentation that would regress this test as-is?

kda added a comment.May 13 2021, 5:54 PM

No.
(My planned change won't change this behavior:
https://github.com/google/sanitizers/issues/1394)
I found the existing test misleading.
Changing or removing the flag does not change whether the test passes.

If the test is guarding against something changing when
'-asan-use-after-return=1', then perhaps a comment making that clear would
be useful (or even better explicit code that shows what is being avoided is
NOT present).
I don't have a clear understanding how the two features interaction (UAR
and UAS). So, this sort of test may need to cover the UAR case.

FYI, I'm new here, and I try to leave the code better (clearer) when
possible.
I'm also okay, with "bug off", just leave it alone. It is not broken.

vsk accepted this revision.May 14 2021, 10:53 AM

Great - I just wanted to understand the motivation. Thanks for the cleanup!

This revision is now accepted and ready to land.May 14 2021, 10:53 AM
This revision was landed with ongoing or failed builds.May 14 2021, 11:55 AM
This revision was automatically updated to reflect the committed changes.