summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-11 20:56:53 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-11 20:56:53 +0000
commitc0f8eef71085f472fee402afa90eecac8c0ce98e (patch)
tree042d742138fec7ca52a9714b116565fa4ffe517e /clang
parente59292360311fd824f6be5f71cd0e537fee86392 (diff)
downloadbcm5719-llvm-c0f8eef71085f472fee402afa90eecac8c0ce98e.tar.gz
bcm5719-llvm-c0f8eef71085f472fee402afa90eecac8c0ce98e.zip
Fix use of uninitialized, David please check.
llvm-svn: 81570
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index 8617b516f55..dacc888303b 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/lib/CodeGen/CGObjCGNU.cpp
@@ -1184,7 +1184,7 @@ void CGObjCGNU::GenerateClass(const ObjCImplementationDecl *OID) {
Context.getObjCEncodingForType((*iter)->getType(), TypeStr);
IvarTypes.push_back(MakeConstantString(TypeStr));
// Get the offset
- uint64_t Offset;
+ uint64_t Offset = 0;
uint64_t BaseOffset = ComputeIvarBaseOffset(CGM, ClassDecl, *iter);
if (CGM.getContext().getLangOptions().ObjCNonFragileABI) {
Offset = BaseOffset - superInstanceSize;
OpenPOWER on IntegriCloud