diff options
author | Adrian Prantl <aprantl@apple.com> | 2013-07-22 23:44:26 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2013-07-22 23:44:26 +0000 |
commit | 52f5b2502f2a7d85f9e56f987ac445b1e8dd73b9 (patch) | |
tree | 51a54ce074d9d9a924558af1670341636efb5d9c /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 6ab9d936d5c20f417f4036a15ae00a14c299c0f5 (diff) | |
download | bcm5719-llvm-52f5b2502f2a7d85f9e56f987ac445b1e8dd73b9.tar.gz bcm5719-llvm-52f5b2502f2a7d85f9e56f987ac445b1e8dd73b9.zip |
Debug Info: Acknowledge the alignment when locating byref block variables.
Fixes rdar://problem/14386148
llvm-svn: 186894
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index feed2b48afc..64259b3e993 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -2626,6 +2626,7 @@ llvm::DIType CGDebugInfo::EmitTypeForVarWithBlocksAttr(const VarDecl *VD, llvm::DIType FieldTy = CGDebugInfo::getOrCreateType(FType, Unit); FieldSize = CGM.getContext().getTypeSize(FType); FieldAlign = CGM.getContext().toBits(Align); + FieldOffset += FieldOffset % FieldAlign; *XOffset = FieldOffset; FieldTy = DBuilder.createMemberType(Unit, VD->getName(), Unit, |