Merge upstream Clang rev 205331 debuginfo crash fix:
Debug info: fix a crash when emitting IndirectFieldDecls, which were previously not handled at all. rdar://problem/16348575 MFC after: 1 week Sponsored by: DARPA, AFRL
This commit is contained in:
parent
6ca0b78179
commit
8c57ae5812
@ -1241,7 +1241,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
|
||||
|
Loading…
Reference in New Issue
Block a user