This is an archive of the discontinued LLVM Phabricator instance.

[clang][CodeGen] Add default attributes to __clang_call_terminate
ClosedPublic

Authored by john.brawn on Nov 24 2022, 8:57 AM.

Details

Summary

When generating __clang_call_terminate use SetLLVMFunctionAttributes to set the default function attributes, like we do for all the other functions generated by clang. This fixes a problem where target features from the command line weren't being applied to this function.

Diff Detail

Event Timeline

john.brawn created this revision.Nov 24 2022, 8:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 24 2022, 8:57 AM
john.brawn requested review of this revision.Nov 24 2022, 8:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 24 2022, 8:57 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Nov 28 2022, 2:03 PM
This revision was landed with ongoing or failed builds.Nov 29 2022, 5:10 AM
This revision was automatically updated to reflect the committed changes.