projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bac187b
)
Fix use of uninitialized variable in r338299
author
Scott Linder
<scott@scottlinder.com>
Mon, 30 Jul 2018 22:52:07 +0000
(22:52 +0000)
committer
Scott Linder
<scott@scottlinder.com>
Mon, 30 Jul 2018 22:52:07 +0000
(22:52 +0000)
llvm-svn: 338321
clang/lib/CodeGen/CGDebugInfo.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGDebugInfo.cpp
b/clang/lib/CodeGen/CGDebugInfo.cpp
index
8dca6f1
..
5be6fb3
100644
(file)
--- 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