[DebugInfo] Ensure complete type is emitted with -fstandalone-debug
authorReid Kleckner <rnk@google.com>
Fri, 9 Sep 2016 17:03:53 +0000 (17:03 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 9 Sep 2016 17:03:53 +0000 (17:03 +0000)
commit22466a92e164f43aba45e9722cf62ee1bd47b246
tree0d13ea4018c6ca6bf29386d1a14e39452ef2ff28
parentb6bee5164d2a0a9fc9b131b8354413486abea110
[DebugInfo] Ensure complete type is emitted with -fstandalone-debug

The logic for upgrading a class from a forward decl to a complete type
was not checking the debug info emission level before applying the
vtable optimization. This meant we ended up without debug info for a
class which was required to be complete. I noticed it because it
triggered an assertion during CodeView emission, but that's a separate
issue.

llvm-svn: 281057
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-class-nolimit.cpp