This is an archive of the discontinued LLVM Phabricator instance.

IRGen: Call SetLLVMFunctionAttributes{,ForDefinition} on __cfi_check_fail.
ClosedPublic

Authored by pcc on Nov 25 2019, 12:44 PM.

Details

Summary

This has the main effect of causing target-cpu and target-features to be set
on __cfi_check_fail, causing the function to become ABI-compatible with other
functions in the case where these attributes affect ABI (e.g. reserve-x18).

Technically we only need to call SetLLVMFunctionAttributes to get the target-*
attributes set, but since we're creating a definition we probably ought to
call the ForDefinition function as well.

Fixes PR44094.

Diff Detail

Event Timeline

pcc created this revision.Nov 25 2019, 12:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 25 2019, 12:44 PM
eugenis accepted this revision.Nov 25 2019, 1:55 PM

LGTM

This revision is now accepted and ready to land.Nov 25 2019, 1:55 PM
This revision was automatically updated to reflect the committed changes.