summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-04-01 17:52:06 +0000
committerAdrian Prantl <aprantl@apple.com>2014-04-01 17:52:06 +0000
commit96365aef99ec463375dfdaf6eb260823e0477b6a (patch)
tree8acffbb871b80a7fa287f27acf50ebcd24873f3d /lib/CodeGen/CGDebugInfo.cpp
parent839fe84cab1689ce5f3e4bcd3ba42cd4b5cb298c (diff)
downloadclang-96365aef99ec463375dfdaf6eb260823e0477b6a.tar.gz
clang-96365aef99ec463375dfdaf6eb260823e0477b6a.tar.bz2
clang-96365aef99ec463375dfdaf6eb260823e0477b6a.tar.xz
Debug info: fix a crash when emitting IndirectFieldDecls, which were
previously not handled at all. rdar://problem/16348575 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 82db942e29..2556cf9850 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -1252,7 +1252,7 @@ CollectTemplateParams(const TemplateParameterList *TPList,
V = CGM.GetAddrOfFunction(FD);
// Member data pointers have special handling too to compute the fixed
// offset within the object.
- if (isa<FieldDecl>(D)) {
+ if (isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D)) {
// These five lines (& possibly the above member function pointer
// handling) might be able to be refactored to use similar code in
// CodeGenModule::getMemberPointerConstant