Skip to content

partial specialization doesn't preserve attributes on call #4129

@nlewycky

Description

@nlewycky
Bugzilla Link 3757
Resolution WONTFIX
Resolved on Jan 15, 2011 18:27
Version trunk
OS Linux
CC @lattner

Extended Description

The partial specialization pass doesn't preserve attributes on the call or invoke instruction. That means things like tail call, but also all the readnone/readonly noalias, sret, etc. This could cause a miscompilation for anyone using partial specialization.

There's logic to copy attributes properly inside of DeadArgumentElimination.cpp RemoveDeadStuffFromFunction(F) but it looks non-trivial to refactor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaipoInterprocedural optimizationswontfixIssue is real, but we can't or won't fix it. Not invalid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions