[PATCH] D19443: Module Debugging: Fix the condition for determining whether a template instantiation is in a module.

Adrian Prantl via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 22 15:21:35 PDT 2016


aprantl created this revision.
aprantl added a reviewer: doug.gregor.
aprantl added a subscriber: cfe-commits.
aprantl set the repository for this revision to rL LLVM.

This patch fixes the condition for determining whether the debug info for a template instantiation will exist in an imported clang module by:
- checking whether the ClassTemplateSpecializationDecl is complete and
- checking that the instantiation was in a module by looking at the first field.

I also added a negative check to make sure that a typedef to a forward-declared template (with the definition outside of the module) is handled correctly.

Repository:
  rL LLVM

http://reviews.llvm.org/D19443

Files:
  lib/CodeGen/CGDebugInfo.cpp
  test/Modules/ExtDebugInfo.cpp
  test/Modules/Inputs/DebugCXX.h
  test/Modules/ModuleDebugInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19443.54737.patch
Type: text/x-patch
Size: 8713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160422/35700fbf/attachment-0001.bin>


More information about the cfe-commits mailing list