[DebugInfo] Add types from constructor homing to the retained types list.
authorAmy Huang <akhuang@google.com>
Tue, 29 Sep 2020 23:19:08 +0000 (16:19 -0700)
committerAmy Huang <akhuang@google.com>
Wed, 30 Sep 2020 00:00:45 +0000 (17:00 -0700)
commit5c4fc581d5fe8427f03ec90b0d745453398aa3ad
tree4bb4a93810889867b3e2af4e7006f3d45c17bff8
parent984744a1314ce165378e7945bc45995302a8cb80
[DebugInfo] Add types from constructor homing to the retained types list.

Add class types to the retained types list to make sure they
don't get dropped if the constructor is optimized out later.

Differential Revision: https://reviews.llvm.org/D88522
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-limited-ctor.cpp