[DebugInfo] Fix bug in constructor homing with classes with trivial
authorAmy Huang <akhuang@google.com>
Wed, 16 Sep 2020 16:58:39 +0000 (09:58 -0700)
committerAmy Huang <akhuang@google.com>
Thu, 24 Sep 2020 21:43:48 +0000 (14:43 -0700)
commitc8df781e54a43593eafd993a5a5cd647866955f8
treee9f316533941bf014feda980242c5cd4e772e480
parente39286510deb59730c40fa662a44e73f484ea1c2
[DebugInfo] Fix bug in constructor homing with classes with trivial
constructors.

This changes the code to avoid using constructor homing for aggregate
classes and classes with trivial default constructors, instead of trying
to loop through the constructors.

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