From: Eric Christopher Date: Mon, 30 Jul 2018 23:21:51 +0000 (+0000) Subject: Revert "Add a definition for FieldSize that seems to make sense here." X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=deb3f2e47344cc2f82358ff7307ef609df9ee6f7;p=clang Revert "Add a definition for FieldSize that seems to make sense here." This reverts commit r338327, the problem was previously fixed in r338321. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338328 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 4f2b153e96..5be6fb3e42 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -974,7 +974,6 @@ llvm::DIType *CGDebugInfo::CreateType(const BlockPointerType *Ty, if (CGM.getLangOpts().OpenCL) { FType = CGM.getContext().IntTy; EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); - FieldSize = CGM.getContext().getTypeSize(Ty); EltTys.push_back(CreateMemberType(Unit, FType, "__align", &FieldOffset)); } else { FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy);