This is an archive of the discontinued LLVM Phabricator instance.

[dllimport] Honor always_inline when deciding whether a dllimport function should be available for inlining (PR48925)
ClosedPublic

Authored by hans on Jan 29 2021, 2:11 AM.

Details

Summary

Normally, Clang will not make dllimport functions available for inlining if they reference non-imported symbols, as this can lead to confusing link errors. But if the function is marked always_inline, the user presumably knows what they're doing and the attribute should be honored.

Diff Detail

Event Timeline

hans requested review of this revision.Jan 29 2021, 2:11 AM
hans created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 29 2021, 2:11 AM
rnk accepted this revision.Feb 1 2021, 10:17 AM

lgtm

This revision is now accepted and ready to land.Feb 1 2021, 10:17 AM
This revision was landed with ongoing or failed builds.Feb 2 2021, 1:34 AM
This revision was automatically updated to reflect the committed changes.