HomePhabricator

[Sema] Mark array element destructors referenced during initialization

Authored by erik.pilkington on May 10 2019, 10:52 AM.

Description

[Sema] Mark array element destructors referenced during initialization

This fixes a crash where we would neglect to mark a destructor referenced for an
attribute((no_destory)) array. The destructor is needed though, since if an
exception is thrown we need to cleanup the elements.

rdar://48462498

Differential revision: https://reviews.llvm.org/D61165

llvm-svn: 360446