diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-11 20:56:53 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-11 20:56:53 +0000 |
commit | c0f8eef71085f472fee402afa90eecac8c0ce98e (patch) | |
tree | 042d742138fec7ca52a9714b116565fa4ffe517e /clang | |
parent | e59292360311fd824f6be5f71cd0e537fee86392 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |