]> granicus.if.org Git - clang/commit
Module debug info: Fix a bug in handling record decls without fields.
authorAdrian Prantl <aprantl@apple.com>
Wed, 17 Aug 2016 18:27:24 +0000 (18:27 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 17 Aug 2016 18:27:24 +0000 (18:27 +0000)
commitdb4c239f5ed8cdf4a0b886c2b18ccb8621f85230
treec9b6c4fe75e374ce2449fb9bb3d13555207cb453
parent0c4be46253825314223aee85bd404b7157d09ffa
Module debug info: Fix a bug in handling record decls without fields.

The previous condition would erroneously mark all CXXRecordDecls
that didn't have any fields as being defined in a clang module.
This patch fixes the condition to only apply to explicit template
instantiations.

<rdar://problem/27771823>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278952 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/Modules/ExtDebugInfo.cpp
test/Modules/Inputs/DebugCXX.h
test/Modules/ModuleDebugInfo.cpp