This is an archive of the discontinued LLVM Phabricator instance.

[HWASan] Properly handle musttail calls.
ClosedPublic

Authored by morehouse on Feb 1 2022, 9:08 AM.

Details

Summary

Fixes a compile error when the clang::musttail attribute is used.

Diff Detail

Event Timeline

morehouse created this revision.Feb 1 2022, 9:08 AM
morehouse requested review of this revision.Feb 1 2022, 9:08 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 1 2022, 9:08 AM
Herald added subscribers: llvm-commits, Restricted Project. · View Herald Transcript
eugenis accepted this revision.Feb 1 2022, 11:04 AM
eugenis added a subscriber: fmayer.

LGTM

@fmayer FYI we will need the same in AArch64StackTagging.

llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
1539

isa<ResumeInst, CleanupReturnInst>

This revision is now accepted and ready to land.Feb 1 2022, 11:04 AM
morehouse updated this revision to Diff 405014.Feb 1 2022, 11:17 AM
morehouse marked an inline comment as done.
  • Use a single isa<Type0, Type1>.
This revision was landed with ongoing or failed builds.Feb 1 2022, 11:24 AM
This revision was automatically updated to reflect the committed changes.
fmayer added a comment.Feb 2 2022, 3:46 PM

LGTM

@fmayer FYI we will need the same in AArch64StackTagging.

Aarch64StackTagging fix in D118854.