summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2018-07-30 23:17:27 +0000
committerEric Christopher <echristo@gmail.com>2018-07-30 23:17:27 +0000
commit8f02a9ed3ce4ec720983461df00bb4ebea89fb23 (patch)
tree36ca08b86f184e63ea2b6467a57d303e91d602f5 /clang/lib/CodeGen/CGDebugInfo.cpp
parentf35ff042f436633a861a19aec2a1d676d0bd2a00 (diff)
downloadbcm5719-llvm-8f02a9ed3ce4ec720983461df00bb4ebea89fb23.tar.gz
bcm5719-llvm-8f02a9ed3ce4ec720983461df00bb4ebea89fb23.zip
Add a definition for FieldSize that seems to make sense here.
This could be sunk out of the if statements, but fix the warning for now. llvm-svn: 338327
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 5be6fb3e424..4f2b153e96e 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -974,6 +974,7 @@ 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);
OpenPOWER on IntegriCloud