This could be sunk out of the if statements, but fix the warning for now.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338327
91177308-0d34-0410-b5e6-
96231b3b80d8
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);