diff options
author | Eric Christopher <echristo@gmail.com> | 2018-07-30 23:17:27 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2018-07-30 23:17:27 +0000 |
commit | 8f02a9ed3ce4ec720983461df00bb4ebea89fb23 (patch) | |
tree | 36ca08b86f184e63ea2b6467a57d303e91d602f5 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | f35ff042f436633a861a19aec2a1d676d0bd2a00 (diff) | |
download | bcm5719-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.cpp | 1 |
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); |