This is an archive of the discontinued LLVM Phabricator instance.

[HWASAN] erase lifetime intrinsics if tag is outside.
ClosedPublic

Authored by fmayer on Feb 23 2022, 2:33 PM.

Diff Detail

Event Timeline

fmayer created this revision.Feb 23 2022, 2:33 PM
fmayer requested review of this revision.Feb 23 2022, 2:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 23 2022, 2:33 PM
fmayer planned changes to this revision.Feb 23 2022, 4:16 PM

test fixes

fmayer updated this revision to Diff 411448.Feb 25 2022, 10:10 AM

fix tests

Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2022, 10:10 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
eugenis accepted this revision.Feb 28 2022, 2:38 PM

LGTM

clang/test/CodeGen/lifetime-sanitizer.c
11

You can use -Xclang -disable-llvm-passes instead.

This revision is now accepted and ready to land.Feb 28 2022, 2:38 PM
fmayer added inline comments.Mar 1 2022, 10:42 AM
clang/test/CodeGen/lifetime-sanitizer.c
11

Isn't what is currently there closer to what we actually want to test: that the hwasan pass has access to lifetimes?

eugenis added inline comments.Mar 1 2022, 10:52 AM
clang/test/CodeGen/lifetime-sanitizer.c
11

I don't have a strong opinion on this, but it is common to exclude llvm passes from clang tests because that makes them brittle. Integration tests generally belong in compiler-rt, but there are some in clang, too.

fmayer updated this revision to Diff 412183.Mar 1 2022, 11:29 AM

update tests

fmayer marked 2 inline comments as done.Mar 1 2022, 11:29 AM
fmayer added inline comments.
clang/test/CodeGen/lifetime-sanitizer.c
11

That makes sense. Updated all tests to use disable-llvm-passes.

Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2022, 12:13 PM
This revision was landed with ongoing or failed builds.Mar 1 2022, 2:47 PM
This revision was automatically updated to reflect the committed changes.
fmayer marked an inline comment as done.