Skip to content
  • Tom Stellard's avatar
    Merging r302817: · f751db31
    Tom Stellard authored
    ------------------------------------------------------------------------
    r302817 | rsmith | 2017-05-11 14:58:24 -0400 (Thu, 11 May 2017) | 9 lines
    
    PR22877: When constructing an array via a constructor with a default argument
    in list-initialization, run cleanups for the default argument after each
    iteration of the initialization loop.
    
    We previously only ran the destructor for any temporary once, at the end of the
    complete loop, rather than once per iteration!
    
    Re-commit of r302750, reverted in r302776.
    
    ------------------------------------------------------------------------
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_40@303167 91177308-0d34-0410-b5e6-96231b3b80d8
    f751db31