diff options
author | Scott Linder <scott@scottlinder.com> | 2018-07-30 22:52:07 +0000 |
---|---|---|
committer | Scott Linder <scott@scottlinder.com> | 2018-07-30 22:52:07 +0000 |
commit | a7c45685832e868510e87c7f87f741f0c9c8d578 (patch) | |
tree | 1c2ac04c23d98e3482a5cb95bf34dc7f06893e17 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | bac187becea441fb2519206716eb9e074bf56f26 (diff) | |
download | bcm5719-llvm-a7c45685832e868510e87c7f87f741f0c9c8d578.tar.gz bcm5719-llvm-a7c45685832e868510e87c7f87f741f0c9c8d578.zip |
Fix use of uninitialized variable in r338299
llvm-svn: 338321
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 8dca6f1ef71..5be6fb3e424 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -989,9 +989,9 @@ llvm::DIType *CGDebugInfo::CreateType(const BlockPointerType *Ty, EltTys.push_back(DBuilder.createMemberType( Unit, "__descriptor", nullptr, LineNo, FieldSize, FieldAlign, FieldOffset, llvm::DINode::FlagZero, DescTy)); + FieldOffset += FieldSize; } - FieldOffset += FieldSize; Elements = DBuilder.getOrCreateArray(EltTys); // The __block_literal_generic structs are marked with a special |