[DebugInfo] Fix to ctor homing to ignore classes with trivial ctors.
authorAmy Huang <akhuang@google.com>
Thu, 30 Jul 2020 02:54:08 +0000 (19:54 -0700)
committerAmy Huang <akhuang@google.com>
Thu, 30 Jul 2020 02:55:20 +0000 (19:55 -0700)
commitf71deb43abea588901c083d3e6d6d25371b486ae
tree21cd08cb03c5165eef558dea718dc52a0b2f822e
parent8224c5047e9cef2db4b0e31427cdf90a2568a341
[DebugInfo] Fix to ctor homing to ignore classes with trivial ctors.

Previously ctor homing was omitting debug info for classes if they
have both trival and nontrivial constructors, but we should only omit debug
info if the class doesn't have any trivial constructors.

retained types list.

bug: https://bugs.llvm.org/show_bug.cgi?id=46537

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