Skip to content
  • Stephen Lin's avatar
    Add some constraints to use of 'returned': · 6c70dc78
    Stephen Lin authored
    1) Disallow 'returned' on parameter that is also 'sret' (no sensible semantics, as far as I can tell).
    2) Conservatively disallow tail calls through 'returned' parameters that also are 'zext' or 'sext' (for consistency with treatment of other zero-extending and sign-extending operations in tail call position detection...can be revised later to handle situations that can be determined to be safe).
    
    This is a new attribute that is not yet used, so there is no impact.
    
    llvm-svn: 180118
    6c70dc78
Loading