]> granicus.if.org Git - clang/commitdiff
Revert "Add a definition for FieldSize that seems to make sense here."
authorEric Christopher <echristo@gmail.com>
Mon, 30 Jul 2018 23:21:51 +0000 (23:21 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 30 Jul 2018 23:21:51 +0000 (23:21 +0000)
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

lib/CodeGen/CGDebugInfo.cpp

index 4f2b153e96e004f414549d3020aa0d329327f7ef..5be6fb3e4245b1c2439a949d09cc70c86bee94f0 100644 (file)
@@ -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);